Replace Feature Policy with Permissions Policy (#1112)

* Add Permissions Policy

* Remove Display capture option
This commit is contained in:
Dnouv
2021-05-11 20:59:55 +05:30
committed by GitHub
parent 62ccbaad8b
commit 089d4abab1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func secureMiddleware() func(h http.Handler) http.Handler {
ContentTypeNosniff: true,
FrameDeny: true,
ReferrerPolicy: "same-origin",
FeaturePolicy: "autoplay 'none'; camera: 'none'; display-capture 'none'; microphone: 'none'; usb: 'none'",
PermissionsPolicy: "autoplay=(), camera=(), microphone=(), usb=()",
//ContentSecurityPolicy: "script-src 'self' 'unsafe-inline'",
})
return sec.Handler