1.0.2 • Published 3 years ago

csp-preset-disqus v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

csp-preset-disqus

Disqus preset for csp-header

npm npm

Installation

npm install --save csp-preset-disqus

Usage

const { getCSP } = require('csp-header');

const my_csp_policy = getCSP({
    directives: {
        // ...
        "script-src": [
            // ...
            "your-disqus-subdomain-name.disqus.com",
        ],
    },
    presets: [
        // Add the Disqus preset
        require("csp-preset-disqus"),
    ]
});

Don't forgot the add your Disqus subdomain to the script-src directive.

Contribute

Feel free to open issues/pull-requests if a directive is missing.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago