forked from nicojs/typed-html
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Implement CSP #459
Copy link
Copy link
Open
Description
Hono/jsx supports adding CSP headerst to the final script added https://hono.dev/docs/guides/jsx#streamingcontext
Ideally we could also implement the same by simply setting a optional cspNonce optional value in the request context and later inject it in the SuspenseScript.
This could be added automatically or a custom value set by the user
In the fastify plugin, we could either implement this natively or use the fastify-helmet module to generate those on the fly with enableCspNonces: true
https://github.com/fastify/fastify-helmet#example---generate-by-options
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels