spring:
cloud:
gateway:
globalcors:
cors-configurations:
'[/**]':
allowed-origins: "*"
allowed-headers: "*"
allow-credentials: true
allowed-methods:
- GET
- POST
- DELETE
- PUT
- OPTION
Spring Cloud Gateway跨域配置
最新推荐文章于 2024-08-22 10:27:05 发布
本文介绍如何使用Spring Cloud Gateway全局配置CORS,允许所有来源、请求头并支持认证,同时开放GET、POST、DELETE等HTTP方法。
2万+

被折叠的 条评论
为什么被折叠?



