From 064ea008fbf5de74757c05a7f3d34fc4e9b863d0 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 25 Jul 2019 19:29:46 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-gateway.html | 3 +++ 1 file changed, 3 insertions(+) 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.

+