Browse Source

Merge pull request #446 from tony-clarke-amdocs/fix-cors-test

Fix CORS test to only allow GET method
pull/457/head
Ryan Baxter 7 years ago committed by GitHub
parent
commit
cd48c2636d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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