From 92c84d93c2fdc3604d08078fb97e4b559039f901 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 6 Jun 2024 12:30:24 +0200 Subject: [PATCH] Remove a wrong 'proxy_hide_header' directive. --- templates/nginx-cors.conf.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/nginx-cors.conf.j2 b/templates/nginx-cors.conf.j2 index 88719c3..1f3af86 100644 --- a/templates/nginx-cors.conf.j2 +++ b/templates/nginx-cors.conf.j2 @@ -34,7 +34,6 @@ if ($request_method = 'GET') { {% if nginx_cors_limit_origin %} add_header 'Access-Control-Allow-Origin' '{{ nginx_cors_acl_origin | default("$http_origin") }}'; {% else %} - proxy_hide_header Access-Control-Allow-Origin; add_header 'Access-Control-Allow-Origin' '*'; {% endif %} add_header 'Access-Control-Allow-Credentials' 'true';