M4: security pass — strict CSP, header split, build-time scan
All JS moved to external /site.js → script-src 'self' with no inline JS, hashes or eval. Full header set via nginx (CSP, nosniff, frame-deny, referrer, permissions, COOP/CORP); HSTS stays at the CF edge. Shared headers include avoids the location add_header reset footgun. Build-time secret/inline-script/third-party scan gate. SECURITY.md documents posture.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"check": "astro check",
|
||||
"scan": "bash scripts/check-build.sh dist",
|
||||
"gen:og": "node scripts/gen-og.mjs",
|
||||
"astro": "astro"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user