Changelog
4.5.0 - 2021-04-17
helmet.crossOriginEmbedderPolicy
: a new middleware for the Cross-Origin-Embedder-Policy
header, disabled by defaulthelmet.crossOriginOpenerPolicy
: a new middleware for the Cross-Origin-Opener-Policy
header, disabled by defaulthelmet.crossOriginResourcePolicy
: a new middleware for the Cross-Origin-Resource-Policy
header, disabled by defaulttrue
enables a middleware with default options. Previously, this would fail with an error if the middleware was already enabled by default.originAgentCluster
at the top levelChangelog
4.4.0 - 2021-01-17
helmet.originAgentCluster
: a new middleware for the Origin-Agent-Cluster
header, disabled by defaultChangelog
4.3.0 - 2020-12-27
helmet.contentSecurityPolicy
: setting the default-src
to helmet.contentSecurityPolicy.dangerouslyDisableDefaultSrc
disables ithelmet.frameguard
: slightly improved error messages for non-stringsChangelog
4.2.0 - 2020-11-01
helmet.contentSecurityPolicy
: get the default directives with contentSecurityPolicy.getDefaultDirectives()
helmet()
now supports objects that don't have Object.prototype
in their chain, such as Object.create(null)
, as optionshelmet.expectCt
: max-age
is now first. See #264Changelog
4.1.0 - 2020-08-15
helmet.contentSecurityPolicy
:
HelmetOptions
interface is no longer exported. This only affects TypeScript users. If you need the functionality back, see this comment