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

csp-header

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csp-header - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

dist/constants.d.ts

@@ -8,3 +8,3 @@ export declare const NONE = "'none'";

export declare const STRICT_DYNAMIC = "'strict-dynamic'";
export declare const NO_REFERER = "'no-referer'";
export declare const NO_REFERRER = "'no-referrer'";
export declare const NONE_WHEN_DOWNGRADE = "'none-when-downgrade'";

@@ -14,2 +14,6 @@ export declare const ORIGIN = "'origin'";

export declare const UNSAFE_URL = "'unsafe-url'";
/**
* @deprecated
*/
export declare const NO_REFERER = "'no-referrer'";
export declare const ALLOW_FORMS = "'allow-forms'";

@@ -16,0 +20,0 @@ export declare const ALLOW_MODALS = "'allow-modals'";

@@ -13,3 +13,3 @@ "use strict";

// referer values
exports.NO_REFERER = "'no-referer'";
exports.NO_REFERRER = "'no-referrer'";
exports.NONE_WHEN_DOWNGRADE = "'none-when-downgrade'";

@@ -19,2 +19,6 @@ exports.ORIGIN = "'origin'";

exports.UNSAFE_URL = "'unsafe-url'";
/**
* @deprecated
*/
exports.NO_REFERER = exports.NO_REFERRER;
// sandbox values

@@ -21,0 +25,0 @@ exports.ALLOW_FORMS = "'allow-forms'";

2

package.json
{
"name": "csp-header",
"version": "2.1.1",
"version": "2.1.2",
"description": "Content-Security-Policy header generator",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# csp-header
[![NPM version](https://img.shields.io/npm/v/csp-header.svg?style=flat)](https://www.npmjs.com/package/csp-header)
[![NPM downloads](https://img.shields.io/npm/dm/csp-header.svg?style=flat)](https://www.npmjs.com/package/csp-header)
[![Dependency Status](https://img.shields.io/david/frux/csp-header.svg?style=flat)](https://david-dm.org/frux/csp-header)
Content-Security-Policy header generator for Node.js.

@@ -26,3 +30,3 @@

]
}
},
reportUri: 'https://cspreport.com/send'

@@ -38,3 +42,3 @@ });

directives: { [key: string]: string[] },
presets: policies[] | { [key: string]: policies }
presets: policies[] | { [key: string]: policies },
reportUri: string,

@@ -41,0 +45,0 @@ extend: policies // DEPRECATED use presets instead

@@ -13,3 +13,3 @@ // General values

// referer values
export const NO_REFERER = "'no-referer'";
export const NO_REFERRER = "'no-referrer'";
export const NONE_WHEN_DOWNGRADE = "'none-when-downgrade'";

@@ -20,2 +20,7 @@ export const ORIGIN = "'origin'";

/**
* @deprecated
*/
export const NO_REFERER = NO_REFERRER;
// sandbox values

@@ -22,0 +27,0 @@ export const ALLOW_FORMS = "'allow-forms'";

Sorry, the diff of this file is not supported yet

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