Skip to content

Commit 4624403

Browse files
committed
[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. closes #15571 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
1 parent f072d94 commit 4624403

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/administration/on_premise/deploy.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ X-Sendfile and X-Accel).
533533
location /web/filestore {
534534
internal;
535535
alias /path/to/odoo/data-dir/filestore;
536+
add_header Content-Security-Policy $upstream_http_content_security_policy;
537+
add_header X-Content-Type-Options nosniff;
536538
}
537539
538540
In case you don't know what is the path to your filestore, start Odoo with the

0 commit comments

Comments
 (0)