From 472ecffe093be35d74849cc62f7b42ec9797a7cf Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: Wed, 16 Nov 2022 16:57:24 +0800
Subject: [PATCH] Update techhero-framework-gateway-local.yml

---
 techhero-framework-gateway-local.yml | 29 +++++++++++------------------
 1 file changed, 11 insertions(+), 18 deletions(-)

diff --git a/techhero-framework-gateway-local.yml b/techhero-framework-gateway-local.yml
index c8dd6eb..03ab504 100644
--- a/techhero-framework-gateway-local.yml
+++ b/techhero-framework-gateway-local.yml
@@ -1,23 +1,16 @@
 spring:
   cloud:
-        gateway:
-          globalcors: # 全局的跨域处理
-            add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题
-            corsConfigurations:
-              '[/**]':
-                allowedOrigins: # 允许哪些网站的跨域请求 allowedOrigins: “*” 允许所有网站
-                  - "https://localhost:8001"
-                  - "https://localhost:8002"
-                  - "https://localhost:8003"
-                allowedMethods: # 允许的跨域ajax的请求方式 “*” 允许所有
-                  - "GET"
-                  - "POST"
-                  - "DELETE"
-                  - "PUT"
-                  - "OPTIONS"
-                allowedHeaders: "*" # 允许在请求中携带的头信息
-                allowCredentials: true # 是否允许携带cookie
-                maxAge: 360000 # 这次跨域检测的有效期
+    gateway:
+      globalcors: # 全局的跨域处理
+        add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题
+        corsConfigurations:
+          '[/**]':
+            allowedOrigins: "*"
+            allowedMethods: "*"
+            
+            allowedHeaders: "*" # 允许在请求中携带的头信息
+            allowCredentials: true # 是否允许携带cookie
+            maxAge: 360000 # 这次跨域检测的有效期
 
   http:
     multipart:
--
libgit2 0.26.0