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

Conflicts with CSP 'nonce' policy #136

Open
hazeebawan opened this issue Jun 26, 2024 · 1 comment
Open

Conflicts with CSP 'nonce' policy #136

hazeebawan opened this issue Jun 26, 2024 · 1 comment

Comments

@hazeebawan
Copy link

Eva uses Isomorphic-style-loader to load animation styles into the document. If site has a CSP policy of style-src: 'nonce-xyz', it prevents the eva styles from getting loaded.

Both angular and webpack provide ways to use nonce with the inline styles they append:

webpack: https://webpack.js.org/loaders/style-loader/#nonce
angular: https://angular.dev/best-practices/security#content-security-policy

We can utilize either of these mechanisms and develop an approach to resolve this conflict.

Want to hear what community thinks of this?

@hazeebawan
Copy link
Author

hazeebawan commented Jun 26, 2024

Screenshot form prod script: eva.js

image

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