From d29921953357308dee9e2b69569a28e06d097841 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 25 Jun 2022 15:23:59 -0400 Subject: [PATCH] Add media-src to CSP --- pages/tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/tag.go b/pages/tag.go index 6ef36bb..1288f9f 100644 --- a/pages/tag.go +++ b/pages/tag.go @@ -11,7 +11,7 @@ import ( func HandleTag(c *fiber.Ctx) error { utils.SetHeaders(c) c.Set("Cache-Control", "public,max-age=604800") - c.Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline' 'self'; img-src 'self'; font-src 'self'; manifest-src 'self'; block-all-mixed-content") + c.Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline' 'self'; media-src 'self'; img-src 'self'; font-src 'self'; manifest-src 'self'; block-all-mixed-content") page := "1" if c.Query("page") != "" {