From 47b551068a731646d66b0fcfd8d07f4670bff060 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 29 May 2025 18:18:51 +0300 Subject: [PATCH] dounble-headers-fix --- nginx.conf.sigil | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 48f98021..fdb4832b 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -65,10 +65,6 @@ server { # Handle CORS preflight requests if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' $allow_origin always; - add_header 'Access-Control-Allow-Methods' 'POST, GET, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization' always; - add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Max-Age' 1728000; add_header 'Content-Type' 'text/plain; charset=utf-8'; add_header 'Content-Length' 0;