Skip to content

Conversation

@titoBouzout
Copy link
Contributor

In the discord thread https://discord.com/channels/722131463138705510/932856348855660544/1433828824692555876

It has been raised the issue that with a strong CSP configuration that doesnt allow style inlining, solid will cause CSP errors (as expected with such a configuration).

This PR adds a new config inlineStyles that defaults to true allowing to disable style inlining.

It does so by wrapping the style value of the attribute with a iife arrow function. The ouput could possibly be improved, at least doesnt creates aditional mergeProps.

Related note: It would be interesting to see if this could be solved in some way when using SolidStart

@titoBouzout titoBouzout changed the title add option inlineStyles to disable style inlining [main] add option inlineStyles to disable style inlining Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant