Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-csp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-csp - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

LICENSE

4

gatsby-ssr.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc