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

398
Vistas
CSP blocking Websocket server connection

I have a jhipster generated application where I want to add a websocket. Locally everything works, but on the server I'm getting CSP errors. How can this be resolved? I tried adding <meta http-equiv="Content-Security-Policy" content="connect-src *;"> to index.html but it does not help. Nginx is in front of the application as a proxy.

console errors

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In Spring Boot, the CSP is set in java not in index.html, this is why your change had no impact.

If you look at SecurityConfiguration.java in your generated project, you'll see this line:

.contentSecurityPolicy(jHipsterProperties.getSecurity().getContentSecurityPolicy())

It means that the CSP is directly copied from application properties under jhipster.security.content-security-policy key.

So, just edit application.yml to change it.

over 4 years ago · Santiago Trujillo Denunciar
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