mirror of
https://github.com/odoo/documentation.git
synced 2025-12-12 07:29:27 +07:00
[IMP] admin: missing header with X-Accel-Redirect
Nginx doesn't set the Content-Security-Policy and X-Content-Type-Options
headers on the response it sends to the browser even though they were
present on the response from the Odoo server.
X-original-commit: 4624403d76
This commit is contained in:
@@ -533,6 +533,8 @@ X-Sendfile and X-Accel).
|
||||
location /web/filestore {
|
||||
internal;
|
||||
alias /path/to/odoo/data-dir/filestore;
|
||||
add_header Content-Security-Policy $upstream_http_content_security_policy;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
}
|
||||
|
||||
In case you don't know what is the path to your filestore, start Odoo with the
|
||||
|
||||
Reference in New Issue
Block a user