csp-header
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -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'"; |
{ | ||
"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
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
25149
488
114