Problems with Content Security Policy #6879
Unanswered
pensivedog
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the Hugo Hyas starter kit and trying to get Decap CMS to work with builds on Netlify and authentication with Netilfy Identity. The CMS works fine locally using
npx decap-server
but fails in production due CSP violations. Problems withscript-src
,style-src
, andimg-source
. The only way I was able to get it to work was by commenting out the entire CSP, so mynetlify.toml
file now looks like this:Is this leaving my site vulnerable?
There's an old, still-open issue here about this, but I wasn't able to figure out any other actionable approach from it.
Has anyone else encountered and solved this?
Beta Was this translation helpful? Give feedback.
All reactions