mirror of https://github.com/portainer/portainer
fix(csp): add object-src to the CSP header BE-12217 (#1126)
parent
48dcfcb08f
commit
8d9e1a0ad5
|
@ -534,7 +534,7 @@ func MWSecureHeaders(next http.Handler, hsts, csp bool) http.Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
if csp {
|
if csp {
|
||||||
w.Header().Set("Content-Security-Policy", "script-src 'self' cdn.matomo.cloud js.hsforms.net; frame-ancestors 'none';")
|
w.Header().Set("Content-Security-Policy", "script-src 'self' cdn.matomo.cloud js.hsforms.net; object-src 'none'; frame-ancestors 'none';")
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||||
|
|
Loading…
Reference in New Issue