mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 14:02:03 +02:00
Initial commit
This commit is contained in:
23
node_modules/content-security-policy-builder/README.md
generated
vendored
Normal file
23
node_modules/content-security-policy-builder/README.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
Content Security Policy builder
|
||||
===============================
|
||||
[](https://travis-ci.org/helmetjs/content-security-policy-builder)
|
||||
|
||||
Take an object and turn it into a Content Security Policy string. Useful for building Content Security Policy libraries.
|
||||
|
||||
It can handle a lot of things you can you throw at it; `camelCased` or `dash-separated` directives, arrays or strings, et cetera.
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
const builder = require('content-security-policy-builder')
|
||||
|
||||
// default-src 'self' default.com; script-src scripts.com; whatever-src something; object-src
|
||||
builder({
|
||||
directives: {
|
||||
defaultSrc: ["'self'", 'default.com'],
|
||||
scriptSrc: 'scripts.com',
|
||||
'whatever-src': 'something',
|
||||
objectSrc: true
|
||||
}
|
||||
})
|
||||
```
|
Reference in New Issue
Block a user