gateway跨域配置
spring:cloud:gateway:globalcors:corsConfigurations:'[/**]':#这里有个allowCredentials: true这个东西是设置允许访问携带cookie的,这点一定要和前端对应!allowCredentials: tr...
·
spring:
cloud:
gateway:
globalcors:
corsConfigurations:
'[/**]':
#这里有个allowCredentials: true这个东西是设置允许访问携带cookie的,这点一定要和前端对应!
allowCredentials: true
#可以填写多个域名用","隔开 例如:"http://www.xiaolc.cn,https://spring.io" "*"代表允许所有
allowedOrigins: "*"
allowedMethods: "*"
allowedHeaders: "*"
更多推荐
已为社区贡献2条内容
所有评论(0)