1.0.2 • Published 3 years ago
csp-preset-disqus v1.0.2
csp-preset-disqus
Disqus preset for csp-header
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.