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

Support nonce for web-component-library-stencil #466

Open
AliKdhim87 opened this issue Feb 27, 2024 · 1 comment
Open

Support nonce for web-component-library-stencil #466

AliKdhim87 opened this issue Feb 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AliKdhim87
Copy link
Collaborator

AliKdhim87 commented Feb 27, 2024

Beschrijving:

Probleem: Het nonce-attribuut wordt niet toegevoegd aan de <style>-elementen in de gerenderde HTML-uitvoer.

console.log:

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-ODYyNTg3YzktYjU2MC00MmJhLTg5ODMtODZmNTRlYTY4YmNi'". Either the 'unsafe-inline' keyword, a hash ('sha256-YUKCaHC6u+Nroo+NYv18Vu9sN88jXs+Baxc8F1bNkyE='), or a nonce ('nonce-...') is required to enable inline execution.
@AliKdhim87 AliKdhim87 added the bug Something isn't working label Feb 27, 2024
@Robbert Robbert changed the title Fix the Content Security Policy CSP issue Support nonce for web-component-library-stencil Feb 28, 2024
@AliKdhim87
Copy link
Collaborator Author

Het lijkt erop dat StencilJS een bug heeft. Ik heb het @utrecht/web-component-library-react pakket getest in een andere Next.js-app en kreeg hetzelfde probleem.

Ik heb om hulp gevraagd op de StencilJS Discord en ook een issue aangemaakt op GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants