Skip to content

Instantly share code, notes, and snippets.

@wenzf
wenzf / csp.server.ts
Last active April 19, 2026 08:29
React Router CSP (nonce) example
import {
getCSP, NONE, STRICT_DYNAMIC, SELF,
// UNSAFE_INLINE
} from 'csp-header';
import headers_remove from './headers_remove.json';
/*
* headers_remove.json via
* https://owasp.org/www-project-secure-headers/ci/headers_remove.json
*/