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

JsBarcode with secure style-src directive #450

Open
phil9001 opened this issue Apr 12, 2024 · 0 comments
Open

JsBarcode with secure style-src directive #450

phil9001 opened this issue Apr 12, 2024 · 0 comments

Comments

@phil9001
Copy link

I am working on a project where we use this great package. However - we are optimizing our CSP headers and thus making them more strict. We ran into an issue with this package due to the way styles are applied. It appears the styles are applied in the renderes, which is the reason I am making this issue and not a PR, as written in the CONTRIBUTING.md file.

This Stack Overflow question describes the problem a bit more and also comes with the potential solution:
https://stackoverflow.com/questions/44608927/how-to-let-script-to-use-setattribute-style-without-breaking-csp

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