all repos — honk @ 949798db90e3e564522d44448ba6e80ec4b19a8a

my fork of honk

bruh
Anirudh Oppiliappan x@icyphox.sh
Tue, 20 Jun 2023 23:05:55 +0300
commit

949798db90e3e564522d44448ba6e80ec4b19a8a

parent

6b7f68bee86271b263245f6c9770ac84b1cc2322

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 cdn.icyphox.sh; script-src 'self'; connect-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; report-uri /csp-violation") + w.Header().Set("Content-Security-Policy", "default-src cdn.icyphox.sh; script-src 'self'; connect-src 'self'; style-src 'self' cdn.icyphox.sh; img-src 'self'; media-src 'self'; report-uri /csp-violation") next.ServeHTTP(w, r) }) }