fs
ad8f30cb09
feat(security): add Content-Security-Policy headers with strict script-src
Eliminate all inline scripts to enable script-src 'self' without
'unsafe-inline', providing strong XSS mitigation via CSP.
Inline script removal:
- login.phtml: replace inline APP_ASSET_BASE with data-asset-base
attribute + app-boot.js (matching default.phtml pattern)
- api-docs: extract SwaggerUI init to js/pages/admin-api-docs-index.js
- docs: extract checkbox enablement to js/pages/admin-docs-index.js
- language-switcher: replace onchange handler with data-auto-submit
attribute + js/components/app-auto-submit.js event listener
CSP policy (dev + prod nginx):
default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline';
img-src 'self' data:; font-src 'self'; connect-src 'self';
form-action 'self'; base-uri 'self'; frame-ancestors 'none';
manifest-src 'self'
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:24:10 +01:00
..
2026-02-11 19:28:12 +01:00
2026-03-06 00:44:52 +01:00
2026-03-04 15:56:58 +01:00
2026-03-12 16:47:53 +01:00
2026-02-22 15:27:35 +01:00
2026-02-22 15:27:35 +01:00
2026-03-12 16:47:53 +01:00
2026-03-04 15:56:58 +01:00
2026-03-12 16:47:53 +01:00
2026-02-04 23:31:53 +01:00
2026-03-12 14:09:06 +01:00
2026-03-12 10:01:24 +01:00
2026-03-13 19:24:10 +01:00
2026-03-04 15:56:58 +01:00
2026-03-04 15:56:58 +01:00
2026-03-04 15:56:58 +01:00
2026-03-04 15:56:58 +01:00
2026-03-05 13:07:43 +01:00
2026-03-13 09:49:11 +01:00
2026-03-13 14:28:49 +01:00
2026-02-11 19:28:12 +01:00
2026-03-12 12:22:36 +01:00
2026-02-22 15:27:35 +01:00
2026-03-07 14:10:36 +01:00
2026-03-13 18:28:13 +01:00
2026-03-07 21:21:47 +01:00