From 31a9ea6a084ef5ed0acea22ae553e3e912447114 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 15 Mar 2023 17:01:30 -0400 Subject: [PATCH] need to allow media src for le memes --- web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.go b/web.go index 134dcdc..fefc55c 100644 --- a/web.go +++ b/web.go @@ -2461,7 +2461,7 @@ func bgmonitor() { 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) }) }