Changelog
8.0.0
Strict-Transport-Security
now has a max-age of 365 days, up from 180Content-Security-Policy
middleware now throws an error if a directive should have quotes but does not, such as self
instead of 'self'
. See #454Content-Security-Policy
's getDefaultDirectives
now returns a deep copy. This only affects users who were mutating the resultStrict-Transport-Security
now throws an error when "includeSubDomains" option is misspelled. This was previously a warningChangelog
7.0.0 - 2023-05-06
Cross-Origin-Embedder-Policy
middleware is now disabled by default. See #411Expect-CT
is no longer part of Helmet. If you still need it, you can use the expect-ct
package. See #378Changelog
6.2.0 - 2023-05-06
strictTransportSecurity
for the Strict-Transport-Security
header, instead of hsts
)