Skip to content

[Feature?]: CSP handling for inline styles #1996

Description

@titoBouzout

Duplicates

  • I have searched the existing issues

Latest version

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.xtargeting SolidStart 2.x versionsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions