mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-07 16:02:13 +00:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
# Security response headers for the Cloudflare Pages deployment of the
|
|
# dashboard. The nginx image carries the same set in
|
|
# nginx-security-headers.conf; both exist because the hosted service serves the
|
|
# frontends from Pages while a self-host serves them from the image.
|
|
#
|
|
# No script-src or connect-src: the API origin is runtime configuration
|
|
# (config.js), so an allowlist fixed at build time would break an instance that
|
|
# points the dashboard elsewhere.
|
|
/*
|
|
X-Content-Type-Options: nosniff
|
|
X-Frame-Options: DENY
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=()
|
|
Content-Security-Policy: frame-ancestors 'none'; object-src 'none'; base-uri 'none'; form-action 'self'
|
|
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
|
|
|
# Hashed build output never changes under a name, so a repeat visit loads every
|
|
# page chunk from cache. Same rule as the nginx image.
|
|
/assets/*
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
|
|
# config.js is the runtime configuration and must never outlive a change to it; same rule as the nginx image.
|
|
/config.js
|
|
Cache-Control: no-store
|