Commit 472ecffe by Administrator

Update techhero-framework-gateway-local.yml

parent b88ba4c4
spring: spring:
cloud: cloud:
gateway: gateway:
globalcors: # 全局的跨域处理 globalcors: # 全局的跨域处理
add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题 add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题
corsConfigurations: corsConfigurations:
'[/**]': '[/**]':
allowedOrigins: # 允许哪些网站的跨域请求 allowedOrigins: “*” 允许所有网站 allowedOrigins: "*"
- "https://localhost:8001" allowedMethods: "*"
- "https://localhost:8002"
- "https://localhost:8003" allowedHeaders: "*" # 允许在请求中携带的头信息
allowedMethods: # 允许的跨域ajax的请求方式 “*” 允许所有 allowCredentials: true # 是否允许携带cookie
- "GET" maxAge: 360000 # 这次跨域检测的有效期
- "POST"
- "DELETE"
- "PUT"
- "OPTIONS"
allowedHeaders: "*" # 允许在请求中携带的头信息
allowCredentials: true # 是否允许携带cookie
maxAge: 360000 # 这次跨域检测的有效期
http: http:
multipart: multipart:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment