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

268
Visualizações
Refused to connect to 'https://...URL' because it violates the following Content Security Policy directive: "connect-src 'self'

Basically I am trying to send myself some information from https://www.binance.com/.

I am trying to make a fetch request to my express server from the devtools console and I get the following error:

Refused to connect to 'http://example.com/movies.json' because it \nviolates the following Content Security Policy directive: "connect-src 'self' https://bin.bnbstatic.com https://public.bnbstatic.com wss://stream.binance.com wss://nbstream.binance.com wss://haodesk.binance.im https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com https://*.s3-accelerate.amazonaws.com wss://*.binance.com https://*.binance.com https://frontend-m.binance.cloud https://sensors.binance.cloud https://report.binance.gg https://*.sentry.io https://stats.g.doubleclick.net https://bin.bnbstatic.com https://resource.bnbstatic.com https://ex.bnbstatic.com wss://stream.binance.com wss://margin-stream.binance.com:9443 undefined undefined wss://bstream.binance.com:9443 https://www.google-analytics.com https://www.googletagmanager.com https://*.litix.io https://*.wistia.com https://embedwistia-a.akamaihd.net".

And then:

Refused to connect to 'https://...URL...' because it violates the document's Content Security Policy.

And the promise gets rejected.

So I thought it may be some configuration with my server (thought it was cors) so I tried to fetch this dummy url from the devtools console with:

fetch('https://jsonplaceholder.typicode.com/todos/1')
  .then(response => response.json())
  .then(json => console.log(json))

And I keep getting the same error.

I tried the same in different websites (stackoverflow let's say) and it works.

Is there any workaround to make a fetch request from the devtools console and bypass this?

Thanks.

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