From 2469b4b950a19a852e0288f22ab772b1530c7dce Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 13 Oct 2024 14:23:02 +0000 Subject: [PATCH] Update default.conf --- default.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.conf b/default.conf index 4aaad97..cd1d69f 100644 --- a/default.conf +++ b/default.conf @@ -482,6 +482,7 @@ server { location /squiz/bitrix/ { + return 200; if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -504,6 +505,7 @@ server { location /squiz/bitrix/oauth/ { + return 200; if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always;