Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

267
Vistas
Using CSP with nonce on React script tag

I have a content security header containing a randomly generated nonce on each request.

All scripts within the html document have a nonce attribute with correct associated value.

All seems to be working ok except for a script loaded from within compiled React script

The problem: The bundled React js file is blocked by CSP and not loaded by the browser even if I add a nonce to the script tag.

I use these CSP directives: Content-Security-Policy: script-src 'strict-dynamic' 'nonce-{0}' 'unsafe-eval' unsafe-inline

This is how the script tag looks like. @nonce is replaced at the runtime.

<script nonce='@nonce' src='{someUrl}/app.js' defer> </script>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda