Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP error for inline event handler when CSP directives are configured #81

Open
chandanch opened this issue Mar 3, 2021 · 0 comments
Open

Comments

@chandanch
Copy link

chandanch commented Mar 3, 2021

I'm getting this error:
Refused to execute inline event handler because it violates the following Content Security Policy directive
My current script src values:

'unsafe-hashes' 'nonce-EDNnf03nceIOfn39fn3e9h3sdfa' 'nonce-EDNnf03nceIOfn39fn3e9h3sdrtyr' 'self' https://*.intercom.io https://*.intercomcdn.com https://*.walkme.com http://*.cloudflare.com 

react-ckeditor-component version: 1.1.0

A workaround would be to set unsafe-inline within script-src but that would put the react-app under some risk.

Any other way to mitigate this issue?

@chandanch chandanch changed the title CSP error for inline event handler since when CSP directives are configured CSP error for inline event handler when CSP directives are configured Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant