diff --git a/internal/web/security.go b/internal/web/security.go new file mode 100644 index 0000000..b2eb1d4 --- /dev/null +++ b/internal/web/security.go @@ -0,0 +1,126 @@ +package web + +import ( + "net/http" + "net/url" +) + +// contentSecurityPolicy is the panel's CSP. Everything the pages load — +// stylesheet, HTMX, the panel's own script, the favicon — is served from +// /static by this same origin, and no template carries an inline