A library for working with and configuring Content Security Policy (CSP) headers.
This library is designed to be runtime agnostic and work in browsers (Chrome, Safari, Firefox, Edge), Deno, Node.js, Bun, and Cloudflare Workers.
# Deno
deno add jsr:@erictaylor/csp
# NPM
npx jsr add @erictaylor/csp
# PNPM
pnpx jsr add @erictaylor/csp
# Yarn
yarn dlx jsr add @erictaylor/csp
# Bun
bunx jsr add @erictaylor/csp
Code contributions are welcome! Please refer to the CONTRIBUTING.md file for more information.
This project is licensed under the MIT License - see the LICENSE file for details.