spring-cloud/spring-cloud-gateway
View on GitHubAdd CORS functionality to spring cloud gateway mvc
Open
#3,302 opened on Mar 17, 2024
enhancementhelp wantedin: server-webmvc
Repository metrics
- Stars
- (4,284 stars)
- PR merge metrics
- (Avg merge 2d 2h) (15 merged PRs in 30d)
Description
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