turf Content Security Policy error
See original GitHub issueI’m getting the following error when loading turf from the CDN: “https://cdn.jsdelivr.net/npm/@turf/turf@5/turf.min.js”
turf.min.js:1 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https:".
at new Function (<anonymous>)
at o (turf.min.js:1)
at turf.min.js:1
at mt (turf.min.js:1)
at turf.min.js:1
at turf.min.js:1
at turf.min.js:1
Is there a way to get around this issue without having to add ‘unsafe-eval’ to the Content Security Policy. Everything I’ve read indicates adding “unsafe-eval” exposed the application to security risks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Microsoft Edge Content-security-policy Error - Stack Overflow
It's working fine, now I converted my extension to Microsoft edge extension. and the overall code works except Content security policy block ...
Read more >How to fix 'because it violates the following content security ...
'because it violates the following content security policy directive' is a browser error message that occurs when Content Security Policy is blocking a ......
Read more >Fix a content security policy (CSP) error - Affilimate
How to check for content security policy errors. Visit your website, open Chrome Dev Tools, click the Console tab, and check for any...
Read more >CSP errors and warnings (Content Security Policy) - HTTP
When you see any of the following messages logged in the browser devtools console, it indicates that a problem related to CSP has...
Read more >Tufts Health Plan: Welcome
At Tufts Health Plan, we're redefining what a health plan can do. Explore information for members, providers, brokers, employers and visitors.
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
@rowanwins still seeing this issue on turf 6.5.0
I encounter the same problem as @badams.