solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Feature?]: CSP handling for inline styles

Open titoBouzout opened this issue 2 months ago • 0 comments

Duplicates

  • [x] I have searched the existing issues

Latest version

  • [x] I have tested the latest version

Summary 💡

Solid, or dom-expressions, inline any style attribute that isnt dynamic.

This performs good but has the issue that people that want a strong CSP that doesnt allow inlined styles have CSP errors.

I wonder if SolidStart can handle this transparently by hinting dom-expressions in some way:

  • dom expressions creates the hashes/nonce of the inlined styles and gives that info to SolidStart, so SolidStart uses that in headers/metatags.

I didnt really stop to think of the actual way this will work, but sounds doable on my mind

Examples 🌈

No response

Motivation 🔦

No response

titoBouzout avatar Nov 01 '25 00:11 titoBouzout