Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
How to use CDN's for Google Chrome Extension and not violate the Content Security Policy directive?

I am Working on a Google Chrome extension. In one of the files, the HTML calls an external script through CDN. I know that I need to mention the same in the manifest to not violate Content Security Policy. After going through some previous questions related to the same topic, I found out the answers are not working out for me and I have no clue why? Also, I would like to mention that I am working on the new manifest version 3.

This is the CDN I am calling from the HTML File:-

 <script src="https://ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>

Below is the code I wrote in the manifest.json for permission:-

    "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'; script-src-elem 'self' 'unsafe-inline' https://ajaxorg.github.io/;"
},

Below is the error I am getting in the console window:-

Error Description

I am a complete beginner working on extension, so it would be very much helpful, If someone guide me out. Thanks in Advance !!!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!