mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-19 00:04:15 +03:00
Disable CSP for now
This commit is contained in:
parent
39cb3455db
commit
92b7ef40af
@ -70,11 +70,11 @@ func robotsTXT(fs http.FileSystem) func(next http.Handler) http.Handler {
|
|||||||
|
|
||||||
func secureMiddleware() func(h http.Handler) http.Handler {
|
func secureMiddleware() func(h http.Handler) http.Handler {
|
||||||
sec := secure.New(secure.Options{
|
sec := secure.New(secure.Options{
|
||||||
ContentTypeNosniff: true,
|
ContentTypeNosniff: true,
|
||||||
FrameDeny: true,
|
FrameDeny: true,
|
||||||
ReferrerPolicy: "same-origin",
|
ReferrerPolicy: "same-origin",
|
||||||
FeaturePolicy: "autoplay 'none'; camera: 'none'; display-capture 'none'; microphone: 'none'; usb: 'none'",
|
FeaturePolicy: "autoplay 'none'; camera: 'none'; display-capture 'none'; microphone: 'none'; usb: 'none'",
|
||||||
ContentSecurityPolicy: "script-src 'self' 'unsafe-inline'",
|
//ContentSecurityPolicy: "script-src 'self' 'unsafe-inline'",
|
||||||
})
|
})
|
||||||
return sec.Handler
|
return sec.Handler
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user