-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Use of eval
in development mode violates Content-Security-Policy
#6611
Comments
(This issue wasn't present in |
Having the same issue, I was about to report it as well. It was introduced here @mjackson what was the reason for using |
* fix: pin react-router to 4.4.0-beta.6 Ref: remix-run/react-router#6611 * test(app-shell): update snapshot
Thanks for the report, @unindented. The purpose of using |
BTW, does anyone know what CSP Codesandbox actually uses? |
Thanks for fixing that! 💯 One small thing to clarify: it’s not just about codesandbox in particular but any app that uses a CSP in development mode. Anyway, thanks again for looking into that 🤗 |
The fix for this was just released in 4.4.0-beta.8. Please give it a shot. @emmenko You can still use CSP with |
@mjackson verified on my app, this is working perfectly. Thank you! |
Version
4.4.0-beta.7
Test Case
CodeSandbox doesn't support adding CSP, but it would look like this:
Steps to reproduce
Import
react-router
in some file, launch app in development mode.Expected Behavior
Things loading fine with CSP enabled.
Actual Behavior
Browser blocks execution of
react-router.js
because it useseval
:Is there a way of implementing your current logic without
eval
?The text was updated successfully, but these errors were encountered: