Back to Daily Feed 
SolidJS HTML 2.0.0-rc.22: Trusted Types Policy Support
Worth Reading
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
- A new
setTrustedTypesPolicy(policy)function is introduced. - This allows Solid to render on pages enforcing
require-trusted-types-for 'script'. - The runtime assigns
TrustedHTMLfrom the provided policy for compiled templates and server HTML. - It's a no-op on the server, supporting isomorphic applications.
Our Commentary
Trusted Types support is a big deal for web security, especially in enterprise environments. It's great to see SolidJS integrating this, making it easier for developers to build secure applications that comply with strict content security policies. This is a solid step forward for the framework's robustness.
View Original Article
Share this article: