gatsby-plugin-csp
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -21,2 +21,4 @@ "use strict"; | ||
disableOnDev = _userPluginOptions$di === void 0 ? true : _userPluginOptions$di, | ||
_userPluginOptions$re = userPluginOptions.reportOnly, | ||
reportOnly = _userPluginOptions$re === void 0 ? false : _userPluginOptions$re, | ||
_userPluginOptions$me = userPluginOptions.mergeScriptHashes, | ||
@@ -42,3 +44,3 @@ mergeScriptHashes = _userPluginOptions$me === void 0 ? true : _userPluginOptions$me, | ||
const cspComponent = React.createElement("meta", { | ||
httpEquiv: "Content-Security-Policy", | ||
httpEquiv: `${reportOnly ? "Content-Security-Policy-Report-Only" : "Content-Security-Policy"}`, | ||
content: cspString(csp) | ||
@@ -45,0 +47,0 @@ }); |
{ | ||
"name": "gatsby-plugin-csp", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Adds Content Security Policy to your Gatsby app.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,3 @@ # gatsby-plugin-csp | ||
disableOnDev: true, | ||
reportOnly: false, // Changes header to Content-Security-Policy-Report-Only for csp testing purposes | ||
mergeScriptHashes: true, // you can disable scripts sha256 hashes | ||
@@ -54,0 +55,0 @@ mergeStyleHashes: true, // you can disable styles sha256 hashes |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7585
8
80
67