all repos — honk @ 8a164c720f4f1ae7423d31cbc55c3fb11f6312e9

my fork of honk

fix csp pls
Anirudh Oppiliappan x@icyphox.sh
Tue, 20 Jun 2023 23:01:05 +0300
commit

8a164c720f4f1ae7423d31cbc55c3fb11f6312e9

parent

9c8e26cc650f6b56f19dee563c6bed74352b5239

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M web.goweb.go

@@ -2664,7 +2664,7 @@ }

func addcspheaders(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Security-Policy", "default-src 'none'; script-src 'self'; connect-src 'self'; style-src 'self' cdn.icyphox.sh; img-src 'self'; media-src 'self'; report-uri /csp-violation") + w.Header().Set("Content-Security-Policy", "default-src 'none'; script-src 'self'; connect-src 'self'; style-src 'self' cdn.icyphox.sh; img-src 'self'; media-src 'self' cdn.icyphox.sh; report-uri /csp-violation") next.ServeHTTP(w, r) }) }