Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

219
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda