assertHttpResponse(httpRequest, 403, "");
}
@Test
public void should_handle_preflight_request_for_put() throws Exception {
HttpRequest httpRequest = client().OPTIONS("/api/cors/3")
.header("Origin", randomOrigin)
.header("Access-Control-Request-Method", "PUT")
;
assertHttpResponse(httpRequest, 200, "");
assertThat(httpRequest.header("Access-Control-Allow-Origin")).isEqualTo(randomOrigin);
}