mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-31 06:22:58 +00:00
fix: allow CSP inline styling
This commit is contained in:
parent
b14b9114f8
commit
5da9d74da6
@ -27,7 +27,7 @@ func NewHandler(
|
||||
r := mux.NewRouter()
|
||||
r.Use(func(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Security-Policy", `default-src 'self'`)
|
||||
w.Header().Set("Content-Security-Policy", `default-src 'self'; style-src 'unsafe-inline';`)
|
||||
next.ServeHTTP(w, r)
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user