From 3afce4838349b3ef8eadac8623d83abc2139b9b9 Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 21 Sep 2026 18:16:20 +0000 Subject: [PATCH] feat: add HSTS, CSP, and Permissions-Policy security headers (closes #91) SecurityHeaders() now also sets Strict-Transport-Security, Content-Security-Policy, and Permissions-Policy. HSTS is emitted unconditionally: browsers ignore it over plaintext (RFC 6797 section 8.1), so it never lies about the connection and no forwarded-proto header need be trusted. The CSP baseline is default-src 'self' with frame-ancestors 'none' as the primary clickjacking control. script-src and style-src carry 'unsafe-inline' because the generator template has inline onclick handlers and the bundled Tailwind asset injects a runtime