all repos — honk @ 9c8e26cc650f6b56f19dee563c6bed74352b5239

my fork of honk

hotfix csp
Anirudh Oppiliappan x@icyphox.sh
Tue, 20 Jun 2023 22:59:12 +0300
commit

9c8e26cc650f6b56f19dee563c6bed74352b5239

parent

607ecd30697558b24471da545cd97e01686fe8a1

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'; 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'; report-uri /csp-violation") next.ServeHTTP(w, r) }) }