diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java index a085fc0417cc..46d32b4e1b15 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java @@ -80,10 +80,6 @@ public void settingAllowedOriginsEnablesCors() throws Exception { public void maxAgeDefaultsTo30Minutes() throws Exception { EnvironmentTestUtils.addEnvironment(this.context, "endpoints.cors.allowed-origins:foo.example.com"); - createMockMvc().perform( - options("/beans").header("Origin", "bar.example.com").header( - HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD, "GET")).andExpect( - status().isForbidden()); performAcceptedCorsRequest().andExpect( header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800")); }