content-security-policy-builder2.1.0 • Public • Published
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;
dash-separated directives, arrays or strings, et cetera.
const builder =// default-src 'self' default.com; script-src scripts.com; whatever-src something; object-src