Browse Source

Fix CORS test to only allow GET method

pull/446/head
Tony Clarke 7 years ago
parent
commit
816761e21f
  1. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/CorsTests.java

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/cors/CorsTests.java

@ -61,7 +61,7 @@ public class CorsTests extends BaseWebClientTests { @@ -61,7 +61,7 @@ public class CorsTests extends BaseWebClientTests {
assertEquals(
"Missing header value in response: "
+ HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS,
Arrays.asList(new HttpMethod[] { HttpMethod.GET, HttpMethod.HEAD }),
Arrays.asList(new HttpMethod[] { HttpMethod.GET }),
asHttpHeaders.getAccessControlAllowMethods());
assertEquals("Pre Flight call failed.", HttpStatus.OK,
clientResponse.statusCode());

Loading…
Cancel
Save