diff --git a/2.1.x/multi/multi__cors_configuration.html b/2.1.x/multi/multi__cors_configuration.html index 610d32b9..d5b22845 100644 --- a/2.1.x/multi/multi__cors_configuration.html +++ b/2.1.x/multi/multi__cors_configuration.html @@ -10,4 +10,4 @@ allowedOrigins: "https://docs.spring.io" allowedMethods: - GET

-

In the example above, CORS requests will be allowed from requests that originate from docs.spring.io for all GET requested paths.

\ No newline at end of file +

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.

\ No newline at end of file diff --git a/2.1.x/single/spring-cloud-gateway.html b/2.1.x/single/spring-cloud-gateway.html index ee0efa76..b3cff9e6 100644 --- a/2.1.x/single/spring-cloud-gateway.html +++ b/2.1.x/single/spring-cloud-gateway.html @@ -738,7 +738,7 @@ spring.cloud.gateway.discovery.locator.filters[1].args[replacement]: "'/${remain allowedOrigins: "https://docs.spring.io" allowedMethods: - GET

-

In the example above, CORS requests will be allowed from requests that originate from docs.spring.io for all GET requested paths.

11. Actuator API

The /gateway actuator endpoint allows to monitor and interact with a Spring Cloud Gateway application. To be remotely accessible, the endpoint has to be enabled and exposed via HTTP or JMX in the application properties.

application.properties.  +

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.

11. Actuator API

The /gateway actuator endpoint allows to monitor and interact with a Spring Cloud Gateway application. To be remotely accessible, the endpoint has to be enabled and exposed via HTTP or JMX in the application properties.

application.properties. 

management.endpoint.gateway.enabled=true # default value
 management.endpoints.web.exposure.include=gateway

11.1 Verbose Actuator Format

A new, more verbose format has been added to Gateway. This adds more detail to each route allowing to view the predicates and filters associated to each route along with any configuration that is available.

/actuator/gateway/routes

[
diff --git a/2.1.x/spring-cloud-gateway.xml b/2.1.x/spring-cloud-gateway.xml
index f8c0c078..18e22d1a 100644
--- a/2.1.x/spring-cloud-gateway.xml
+++ b/2.1.x/spring-cloud-gateway.xml
@@ -1622,6 +1622,7 @@ 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.
 
 
 Actuator API