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

245
Visualizações
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”) firefox extensions

I'm making a Firefox extension but for some reason it's not working and I'm not exactly sure why. please help.

I'm trying to run this code in the extension's browser action popup:

<!DOCTYPE html>
<html>
    <head>
        <style>
            html {
            background-image: url('icon.jpeg');
            background-repeat: repeat;
            background-size: 50px 50px;
            color: black;
            font-family: 'Oswald', sans-serif;
            }
        </style>
    </head>
    <body>
        <h3>TEST</h3>
        <input id="input"><button id="button" onclick="console.log('hi')">ENTER</button>
    </body>
</html>

but when I do it gives me this error:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).

what does it mean and how can I fix it?

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