You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/cors/CorsGatewayFilterApplicationListener.java
Copy file name to clipboardExpand all lines: spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/filter/cors/CorsGatewayFilterApplicationListenerTests.java
+36-25Lines changed: 36 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -46,18 +46,21 @@
46
46
/**
47
47
* Tests for {@link CorsGatewayFilterApplicationListener}.
48
48
*
49
-
* <p>This test verifies that the merged CORS configurations - composed of per-route metadata
50
-
* and at the global level - maintain insertion order, as defined by the use of {@link LinkedHashMap}.
51
-
* Preserving insertion order helps for predictable and deterministic CORS behavior
52
-
* when resolving multiple matching path patterns.
49
+
* <p>
50
+
* This test verifies that the merged CORS configurations - composed of per-route metadata
51
+
* and at the global level - maintain insertion order, as defined by the use of
52
+
* {@link LinkedHashMap}. Preserving insertion order helps for predictable and
53
+
* deterministic CORS behavior when resolving multiple matching path patterns.
53
54
* </p>
54
55
*
55
-
* <p>The test builds actual {@link Route} instances with {@code Path} predicates and verifies
56
-
* that the resulting configuration map passed to {@link RoutePredicateHandlerMapping#setCorsConfigurations(Map)}
57
-
* respects the declared order of:
56
+
* <p>
57
+
* The test builds actual {@link Route} instances with {@code Path} predicates and
58
+
* verifies that the resulting configuration map passed to
59
+
* {@link RoutePredicateHandlerMapping#setCorsConfigurations(Map)} respects the declared
60
+
* order of:
58
61
* <ul>
59
-
* <li>Route-specific CORS configurations (in the order the routes are discovered)</li>
60
-
* <li>Global CORS configurations (in insertion order)</li>
62
+
* <li>Route-specific CORS configurations (in the order the routes are discovered)</li>
63
+
* <li>Global CORS configurations (in insertion order)</li>
0 commit comments