24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
# En-têtes Cloudflare Pages.
|
|||
|
|
# Le CSP script-src/style-src est géré par la balise <meta> hachée de SvelteKit (kit.csp).
|
||
|
|
# Ici : uniquement les directives d'en-tête (frame-ancestors…) et les en-têtes de sécurité.
|
||
|
|
|
||
|
|
/*
|
||
|
|
X-Frame-Options: DENY
|
||
|
|
X-Content-Type-Options: nosniff
|
||
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
||
|
|
Permissions-Policy: geolocation=(), camera=(), microphone=(), payment=(), usb=(), interest-cohort=()
|
||
|
|
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
|
||
|
|
Content-Security-Policy: frame-ancestors 'none'; base-uri 'self'; form-action 'self'; object-src 'none'
|
||
|
|
|
||
|
|
# Assets immuables — cache long.
|
||
|
|
/_app/immutable/*
|
||
|
|
Cache-Control: public, max-age=31536000, immutable
|
||
|
|
|
||
|
|
/fonts/*
|
||
|
|
Cache-Control: public, max-age=31536000, immutable
|
||
|
|
|
||
|
|
# L'administration (Sveltia CMS) doit joindre la forge Gitea.
|
||
|
|
/admin/*
|
||
|
|
X-Robots-Tag: noindex
|
||
|
|
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://labola.o-k-i.net; font-src 'self' data:; connect-src 'self' https://labola.o-k-i.net; frame-ancestors 'none'; base-uri 'self'
|