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

eval('evalAllowed = true') breaks our csp #1162

Closed
olemartin opened this issue Jan 24, 2019 · 1 comment
Closed

eval('evalAllowed = true') breaks our csp #1162

olemartin opened this issue Jan 24, 2019 · 1 comment

Comments

@olemartin
Copy link

We are using a csp-framework that reports all violations of csp to a central server. This statement (from index.js) gets reported all the time in production.

var evalAllowed = false;
try {
  eval('evalAllowed = true');
} catch (e) {
  // eval not allowed due to CSP
}

Could you please do this when requiring react-hot-loader.development.js?

@theKashey
Copy link
Collaborator

Got the point 👍

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

2 participants