Content Security Policy header generation for OCaml
OCaml 87.4%
Dune 4.3%
Other 8.2%
7 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-csp https://tangled.org/did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-csp
git@git.recoil.org:gazagnaire.org/ocaml-csp git@git.recoil.org:did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-csp

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

CSP - Content Security Policy header generation#

Generate Content-Security-Policy HTTP headers with sensible defaults. Supports strict and relaxed policies, popular CDN allowlists, and customizable directives. Implements W3C CSP Level 2/3.

Installation#

opam install csp will install this library.

Documentation#

API documentation