diff --git a/spring-cloud-gateway.html b/spring-cloud-gateway.html index 6bbcf544..4849a557 100644 --- a/spring-cloud-gateway.html +++ b/spring-cloud-gateway.html @@ -2430,6 +2430,9 @@ spring.cloud.gateway.discovery.locator.filters[1].args[replacement]: "'/${remain
In the example above, CORS requests will be allowed from requests that originate from docs.spring.io for all GET requested paths.
To provide the same CORS configuration to requests that are not handled by some gateway route predicate, set the property spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping equal to true. This is useful when trying to support CORS preflight requests and your route predicate doesn’t evalute to true because the http method is options.