http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 83 forks source link

Add typed `Strict-Transport-Security` header #394

Closed yoshuawuyts closed 2 years ago

yoshuawuyts commented 2 years ago

I've been using this for my own website for a while. This adds HSTS back as a typed header.

We probably should consider replacing the remaining helmet-style security headers in the project as well, and replacing them with typed headers instead.