From 7c23c1628048b351b91f2f5c2fc81053c10fcba2 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 26 Aug 2024 12:29:41 +0800 Subject: [PATCH] Update header_cors.conf --- rewrite/nginx/header_cors.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rewrite/nginx/header_cors.conf b/rewrite/nginx/header_cors.conf index afc176f70..61a875c36 100755 --- a/rewrite/nginx/header_cors.conf +++ b/rewrite/nginx/header_cors.conf @@ -1,9 +1,15 @@ -add_header Access-Control-Allow-Origin *; -add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; +add_header 'Access-Control-Allow-Methods' 'GET,OPTIONS,POST' always; +add_header 'Access-Control-Allow-Credentials' 'true' always; +add_header 'Access-Control-Allow-Origin' $http_origin always; +add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, X-Requested-With, Cache-Control' always; #add_header Access-Control-Allow-Origin *; +#add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; + + +#add_header Access-Control-Allow-Origin *; #add_header Access-Control-Allow-Methods *; #add_header Access-Control-Allow-Header *;