all repos — honk @ 8b00c0b7d9a4f4548561d1a78251ff47c5a87f39

my fork of honk

need to allow media src for le memes
Ted Unangst tedu@tedunangst.com
Wed, 15 Mar 2023 17:01:30 -0400
commit

8b00c0b7d9a4f4548561d1a78251ff47c5a87f39

parent

77192b0640436d8baf99a3dd8a03b9de182f26ae

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

jump to
M web.goweb.go

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