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

396
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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