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

Add Nonce Feature for CSP Compatibility #245

Open
luigiaureagroup opened this issue May 7, 2024 · 0 comments
Open

Add Nonce Feature for CSP Compatibility #245

luigiaureagroup opened this issue May 7, 2024 · 0 comments

Comments

@luigiaureagroup
Copy link

I'm adding CSP rules to my project and noticed that this package doesn't handle the nonce attribute.
The code returns the error here:
this.element.setAttribute(this.name,null!=t?t:"")

I tried both importing the inline script and compiling the npm package via webpack but nothing changes

I don't want to add unsafe-inline in my header, it would be safer and more convenient to have a way to inject the nonce attribute

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