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

Enable using nonce style-src based CSP with components #8031

Open
tepi opened this issue Oct 29, 2024 · 0 comments
Open

Enable using nonce style-src based CSP with components #8031

tepi opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tepi
Copy link
Contributor

tepi commented Oct 29, 2024

Describe your motivation

Starting from 24.5 Flow has made it possible to use strict CSP rules with a nonce. It would be great if this was possible for styles as well using style-src with nonce.

Describe the solution you'd like

To enable this, web components should inject the nonce value to all style tags. The nonce value (if in use) is made available by Flow in window.Vaadin.Flow.nonce. When the value is undefined, no action is needed.

Describe alternatives you've considered

Could not find a workaround to do this from Flow side.

Additional context

No response

@tepi tepi added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant