contentSecurityPolicy blocking cdn
See original GitHub issuewhen I am using app.use(helmet())
its blocking all other cdn & static urls
but if I use the code below then cdn & static urls working fine.
app.use(
helmet({
contentSecurityPolicy: false,
})
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Content Security Policy (CSP) - HTTP - MDN Web Docs
Chrome Edge
Content‑Security‑Policy Full support. Chrome25. more. Toggle history Full sup...
base‑uri Full support. Chrome40. Toggle history Full sup...
block‑all‑mixed‑content. Deprecated Full support. ChromeYes. Toggle history...
Read more >How to fix 'because it violates the following content security ...
Content Security Policy blocks all resources that don't match it's policy. To view the policy for a specific website use the CSP Evaluator....
Read more >Content-Security-Policy Header CSP Reference & Examples
The Content-Security-Policy header allows you to restrict how resources such as JavaScript, CSS, or pretty much anything that the browser loads.
Read more >How to Set Up a Content Security Policy (CSP) in 3 Steps
A CSP is an added layer of protection for your website that can help detect and block malicious data injections and XSS from...
Read more >All CDN's blocked by Content Security Policy - Stack Overflow
CASE 1 (works): When I just move my HTML file in the browser (so C://... .html) it works and gets all cdn's.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure, but I wouldn’t. If someone serves malicious code on
www.google.evil.com
, for example, you’d be vulnerable.alright so my final code is below which solved the svg issue too.
the only issue i am facing is in production. api send all request 404 example api path
'/api/user
’another issue I have added
google.com
&google.co.in
but is there any way use .google. I found it is not working