From 0f169a16f76df4dbb160b5033c23e657fb3a3dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 11 Apr 2024 12:07:49 +0200 Subject: [PATCH] nginx cors headers changed --- conf/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4f762ac..f3fb881 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,12 +3,11 @@ location __PATH__/ { # CORS support - add_header Access-Control-Allow-Origin *; + more_set_headers 'Access-Control-Allow-Origin: *'; # Handling preflight requests if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Methods *; - add_header Access-Control-Allow-Headers *; + more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; } # Path to source