hono icon indicating copy to clipboard operation
hono copied to clipboard

Trusted Types for Secure Headers Middleware

Open o-t-w opened this issue 1 month ago • 2 comments

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 avatar Oct 25 '25 18:10 o-t-w

@o-t-w Thank you for the proposal.

Hey @watany-dev, what do you think of adding support for the Trusted Types?

yusukebe avatar Oct 27 '25 09:10 yusukebe

@o-t-w I think it's good. If you're interested, would you like to submit a pull request?

watany-dev avatar Oct 30 '25 00:10 watany-dev