CSP cause Netlify CMS failed to open
See original GitHub issueDescription
On #634 we have CSP related pull-request for issue #611
It cause our CMS Netlify failed to open on https://www.wargabantuwarga.com/admin/
Preview Blank Page:
Error:
Content Security Policy: The page’s settings blocked the loading of a resource at https://identity.netlify.com/v1/netlify-identity-widget.js (“script-src”).
Content Security Policy: The page’s settings blocked the loading of a resource at https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js (“script-src”).
Expected Behaviour
Should not effected
Additional Info
Our homepage also show error
Content Security Policy: The page’s settings blocked the loading of a resource at https://analytics.google.com/g/collect?v=2&tid=G-Q32QC5END5>m=2oe8b0&_p=1768343212&sr=1920x1080&_gaz=1&ul=en-us&cid=1694819148.1628219111&_s=1&dl=https%3A%2F%2Fwww.wargabantuwarga.com%2F&dt=Informasi%20Faskes%20%26%20Alkes%20untuk%20COVID-19%20%7C%20Warga%20Bantu%20Warga&sid=1628753583&sct=9&seg=1&en=page_view&ep.debug_mode=true (“default-src”).
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:13 (13 by maintainers)
Top Results From Across the Web
CMS does not work with Content Security Policy (CSP ...
It seems as though the issues start with the Netlify identity widget and then continue when trying to load the CMS. The identity...
Read more >Deploy error using netlify cMS
This error message is found in your log, this means that in the deploy settings in the Netlify UI your publish directory/build command...
Read more >OT: Hugo Site with Netlify CMS getting CSP errors - support
my problem is when I try to connect the HUGO theme with Netlify cms, using an official Netlify guide and also 1 blog...
Read more >4 Ways to Fix the “Failed to Load Resource: net - Kinsta
A common culprit in Google Chrome is the cache. To reset your Chrome cache, open up the browser. Navigate to your Chrome settings...
Read more >A Fresh Look at Netlify CMS (Part 2) - Brian Rinaldi
Inside the admin folder, I needed create two files: config.yml and index.html and place some basic code in there. So as not to...
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 Free
Top 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
oh sorry. i will fix now
I thought I replied to this, but yeah, nope. As per the TOML spec, you must declare each
[[headers]]
separately. @asaadam @mazipan