Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

263
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!