@@ -9,6 +9,13 @@ spring:
name: taihu-gateway
cloud:
gateway:
+ globalcors: #跨域配置
+ corsConfigurations:
+ '[/**]':
+ allowedOriginPatterns: "*"
+ allowedHeaders: "*"
+ allowedMethods: "*"
+ allowCredentials: true
routes:
#认证服务接口
- id: taihu_router