mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-18 16:18:52 +01:00
feat: rename HTTPSecurityHeaders.CustomFrameOptionsValue to HTTPHeaders.FrameOptions
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
603cccde11
commit
7ccf44b8ed
2 changed files with 26 additions and 17 deletions
|
|
@ -107,7 +107,7 @@ func secureMiddleware() func(http.Handler) http.Handler {
|
|||
FrameDeny: true,
|
||||
ReferrerPolicy: "same-origin",
|
||||
PermissionsPolicy: "autoplay=(), camera=(), microphone=(), usb=()",
|
||||
CustomFrameOptionsValue: conf.Server.HTTPSecurityHeaders.CustomFrameOptionsValue,
|
||||
CustomFrameOptionsValue: conf.Server.HTTPHeaders.FrameOptions,
|
||||
//ContentSecurityPolicy: "script-src 'self' 'unsafe-inline'",
|
||||
})
|
||||
return sec.Handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue