Web Security Rules
Always configure a production CSP.
Always configure a production CSP.
This file extends [common/security.md](../common/security.md) with web-specific security content.
Always configure a production CSP.
Use a per-request nonce for scripts instead of `'unsafe-inline'`.
Content-Security-Policy:
default-src 'self';
script-src 'self' 'nonce-{RANDOM}' https://cdn.jsdelivr.net;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
img-src 'self' data: https:;
font-src 'self' https://fonts.gstatic.com;
connect-src 'self' https://*.example.com;
frame-src 'none';
object-src 'none';
base-uri 'self';Adjust origins to the project. Do not cargo-cult this block unchanged.
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()