mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-27 12:29:50 +01:00
Replace Feature Policy with Permissions Policy (#1112)
* Add Permissions Policy * Remove Display capture option
This commit is contained in:
parent
62ccbaad8b
commit
089d4abab1
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue