diff options
author | Alan Pearce | 2024-06-13 17:31:24 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-13 17:31:38 +0200 |
commit | a00efb33a128ea0b422de01a56c585c93f8d3d13 (patch) | |
tree | 363b983734db91cb5696477744e478cfe458a5b6 /internal/server | |
parent | f9b4d8ec8c475c541960e89022c28f950e8f0a2a (diff) | |
download | website-a00efb33a128ea0b422de01a56c585c93f8d3d13.tar.lz website-a00efb33a128ea0b422de01a56c585c93f8d3d13.tar.zst website-a00efb33a128ea0b422de01a56c585c93f8d3d13.zip |
enable changes to styles in dev mode
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 71b9199..77905f8 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -39,6 +39,7 @@ type Server struct { } func applyDevModeOverrides(config *cfg.Config, listenAddress string) { + config.CSP.StyleSrc = slices.Insert(config.CSP.StyleSrc, 0, "'unsafe-inline'") config.CSP.ScriptSrc = slices.Insert(config.CSP.ScriptSrc, 0, "'unsafe-inline'") config.CSP.ConnectSrc = slices.Insert(config.CSP.ConnectSrc, 0, "'self'") config.BaseURL = cfg.URL{ |