Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.0.0
->^3.0.0
By merging this PR, the issue #166 will be automatically resolved and closed:
Release Notes
helmetjs/helmet
v3.21.0
Compare Source
Added
x-xss-protection
to v1.3.0mode: null
to disablemode=block
Changed
helmet-csp
to v2.9.1bowser
subdependency from 2.5.3 to 2.5.4. See helmet-csp#88v3.20.1
Compare Source
Changed
helmet-csp
to v2.9.0v3.20.0
Compare Source
Changed
helmet-csp
to v2.8.0v3.19.0
Compare Source
Changed
dns-prefetch-control
to v0.2.0dont-sniff-mimetype
to v1.1.0helmet-crossdomain
to v0.4.0hide-powered-by
to v1.1.0x-xss-protection
to v1.2.0v3.18.0
Compare Source
Added
featurePolicy
has 19 new features:ambientLightSensor
,documentDomain
,documentWrite
,encryptedMedia
,fontDisplayLateSwap
,layoutAnimations
,legacyImageFormats
,loadingFrameDefaultEager
,oversizedImages
,pictureInPicture
,serial
,syncScript
,unoptimizedImages
,unoptimizedLosslessImages
,unoptimizedLossyImages
,unsizedMedia
,verticalScroll
,wakeLock
, andxr
Changed
expect-ct
to v0.2.0feature-policy
to v0.3.0frameguard
to v3.1.0nocache
to v2.1.0v3.17.0
Compare Source
Added
referrerPolicy
now supports multiple valuesChanged
referrerPolicy
to v1.2.0v3.16.0
Compare Source
Added
bugs
field inpackage.json
Changed
hsts
to v2.2.0ienoopen
to v1.1.0Deprecated
helmet.hsts
'ssetIf
option has been deprecated and will be removed inhsts@3
. See helmetjs/hsts#22 for moreincludeSubdomains
option (with a lowercased
) has been deprecated and will be removed inhsts@3
. Use the uppercase-DincludeSubDomains
option instead. See helmetjs/hsts#21 for morev3.15.1
Compare Source
Deprecated
hpkp
middleware has been deprecated. If you still need to use this module, install the standalonehpkp
module from npm. See #180 for more.v3.15.0
Compare Source
Added
helmet.featurePolicy
now supports four new featuresv3.14.0
Compare Source
Added
helmet.featurePolicy
middlewarev3.13.0
Compare Source
Added
helmet.permittedCrossDomainPolicies
middlewarev3.12.2
Compare Source
Fixed
lodash.reduce
dependency fromcsp
v3.12.1
Compare Source
Fixed
expectCt
should use comma instead of semicolon as delimiterv3.12.0
Compare Source
Added
xssFilter
now supportsreportUri
optionv3.11.0
Compare Source
Added
v3.10.0
Compare Source
Added
csp
now supportsprefix-src
directiveFixed
csp
no longer loads JSON files internally, helping some module bundlersfalse
should be able to disable a CSP directivev3.9.0
Compare Source
Added
csp
now supportsstrict-dynamic
valuecsp
now supportsrequire-sri-for
directiveChanged
connect
dependencyv3.8.2
Compare Source
Changed
connect
dependency to latestv3.8.1
Compare Source
Fixed
csp
does not automatically setreport-to
when settingreport-uri
v3.8.0
Compare Source
Changed
hsts
no longer cares whether it's HTTPS and always sets the headerv3.7.0
Compare Source
Added
csp
now supportsreport-to
directiveChanged
npmignore
v3.6.1
Compare Source
Changed
connect
versionv3.6.0
Compare Source
Added
expectCt
middleware for setting theExpect-CT
headerv3.5.0
Compare Source
Added
csp
now supports theworker-src
directivev3.4.1
Compare Source
Changed
connect
versionv3.4.0
Compare Source
Added
csp
now supports moresandbox
directivesv3.3.0
Compare Source
Added
referrerPolicy
allowsstrict-origin
andstrict-origin-when-cross-origin
directivesChanged
connect
versionv3.2.0
Compare Source
Added
csp
now allowsmanifest-src
directivev3.1.0
Compare Source
Added
csp
now allowsframe-src
directivev3.0.0
Compare Source
Changed
csp
will check your directives for common mistakes and throw errors if it finds them. This can be disabled withloose: true
.csp
. For source lists (likescript-src
orobject-src
), use the standardscriptSrc: ["'none'"]
. Thesandbox
directive can besandbox: true
to block everything.false
can disable a CSP directive. For example,scriptSrc: false
is the same as not specifying it.reportOnly: true
no longer requires areport-uri
to be set.hsts
'smaxAge
now defaults to 180 days (instead of 1 day)hsts
'smaxAge
parameter is seconds, not millisecondshsts
includes subdomains by defaultdomain
parameter inframeguard
cannot be emptyRemoved
noEtag
option no longer present innoCache
connect-src
workaround in CSP module