spring-cloud/spring-cloud-gateway
Add CORS functionality to spring cloud gateway mvc
開放
#3,302 建立於 2024年3月17日
enhancementhelp wantedin: server-webmvc
倉庫指標
- 星標
- (4,284 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
I required cross origin functionality in spring gateway mvc but I am not able to use it E.g This metadata is not present in spring gateway mvc.
spring:
cloud:
gateway:
routes:
- id: cors_route
uri: https://example.org
predicates:
- Path=/service/**
metadata:
cors
allowedOrigins: '*'
allowedMethods:
- GET
- POST
allowedHeaders: '*'
maxAge: 30