Open
Description
What problem does this feature solve?
Currently when using the v-show directive server-side it produces style="display:none;" attributes on HTML elements. These collide with using a nonce-based CSP (content security policy level 2) setup as CSP Level 2 does not have a method to whitelist inline style attributes. CSP Level 3 allows this by using 'unsafe-hashes' and whitelisting the hash-value of the generated style attribute, but is not supported yet by all browsers (e.g. Safari). This makes it currently impossible to use a nonce-based CSP when using v-show and server-side rendering.
What does the proposed API look like?
E.g. Allow configuration of a custom class name that is used by v-show instead of the inline-styles.
Metadata
Metadata
Assignees
Labels
No labels