hono
hono copied to clipboard
Trusted Types for Secure Headers Middleware
What is the feature you are proposing?
I am using the Secure Headers Middleware to set a Trusted Types Content Security Policy.
I am currently getting the error: Object literal may only specify known properties, and 'trustedTypes' does not exist in type 'ContentSecurityPolicyOptions'.
There is some information about Trusted Types here.
@o-t-w Thank you for the proposal.
Hey @watany-dev, what do you think of adding support for the Trusted Types?
@o-t-w I think it's good. If you're interested, would you like to submit a pull request?