From 5ca52cc4dbb95e587c1644c2b27f41fe492a77fa Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 10 Jul 2023 08:41:00 +0000 Subject: [PATCH] Update file default.conf --- default.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.conf b/default.conf index 11d357a..234c02b 100644 --- a/default.conf +++ b/default.conf @@ -123,7 +123,8 @@ server { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; - add_header Access-Control-Allow-Headers content-type always; + add_header Access-Control-Allow-Headers content-type,authorization always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; return 200; } add_header Access-Control-Allow-Origin $http_origin always;