From 55969985118491bb9bede16674e22ce787774ec8 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Wed, 2 Feb 2022 10:20:14 -0500 Subject: [PATCH] Allow fullscreen in permissions-policy --- utils/setHeaders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/setHeaders.go b/utils/setHeaders.go index 0d9e279..4c6f89c 100644 --- a/utils/setHeaders.go +++ b/utils/setHeaders.go @@ -8,5 +8,5 @@ func SetHeaders(c *fiber.Ctx) { c.Set("X-Content-Type-Options", "nosniff") c.Set("X-Robots-Tag", "noindex, noimageindex, nofollow") c.Set("Strict-Transport-Security", "max-age=31557600") - c.Set("Permissions-Policy", "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()") + c.Set("Permissions-Policy", "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(self), geolocation=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()") } \ No newline at end of file