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

151
Visualizações
Identify the script that causes "Refused to execute a script because its hash, its nonce, or 'unsafe-inline' .... f the Content Security Policy

I have CSP configured to block all inline styling and script tags. But I have a html file where there are multiple script tags import.

<script src="lib/js/demo1.js"></script>
<script src="lib/js/demo2.js"></script>
<script src="lib/js/demo3.js"></script>
<script src="lib/js/demo4.js"></script>

I just see the error in the browser and it does not even tell me which script is causing the issue :

Refused to execute a script because its hash, its nonce, or 'unsafe-inline' appears in neither the script-src directive nor the default-src directive of the Content Security Policy.

There are around 15-20 such imports and all I want to do is find the script tag that is causing the issue. Any pointers in that direction will be appreciated.

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