Skip to content

Commit 39e5c8c

Browse files
authored
Proxito: return Cross-Origin-Opener-Policy header (#12513)
Closes #12508
1 parent acaf4e0 commit 39e5c8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dockerfiles/nginx/proxito.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ server {
112112
add_header X-Frame-Options $x_frame_options always;
113113
set $x_content_type_options $upstream_http_x_content_type_options;
114114
add_header X-Content-Type-Options $x_content_type_options always;
115+
116+
# https://docs.djangoproject.com/en/4.2/ref/middleware/#cross-origin-opener-policy
117+
set $cross_origin_opener_policy $upstream_http_cross_origin_opener_policy;
118+
add_header Cross-Origin-Opener-Policy $cross_origin_opener_policy always;
119+
115120
# Minio sets this header on the response, and we don't want to copy it to the response
116121
proxy_hide_header Content-Security-Policy;
117122
set $content_security_policy $upstream_http_content_security_policy;

0 commit comments

Comments
 (0)