It seems that it's currently not possible to route cross-origin OPTIONS requests with Spring Cloud Gateway to other backend services. This would be desirable so that the components serving the requests can decide on their own which CORS headers to return to their clients. As far as I know it's currently only possible to handle CORS within the gateway itself via a global configuration.
I've created a pull request in my forked repository that adds a failing test to the spring-cloud-gateway-sample application.
There's already been a discussion on the topic in #229 starting with this comment.
It seems that it's currently not possible to route cross-origin OPTIONS requests with Spring Cloud Gateway to other backend services. This would be desirable so that the components serving the requests can decide on their own which CORS headers to return to their clients. As far as I know it's currently only possible to handle CORS within the gateway itself via a global configuration.
I've created a pull request in my forked repository that adds a failing test to the spring-cloud-gateway-sample application.
There's already been a discussion on the topic in #229 starting with this comment.