assertHttpResponse(client().GET("/api/cors/1"), 200, "CORS1");
}
@Test
public void should_handle_good_origin_on_get() throws Exception {
HttpRequest httpRequest = client().GET("/api/cors/1").header("Origin", "http://localhost:9000");
assertHttpResponse(httpRequest, 200, "CORS1");
assertThat(httpRequest.header("Access-Control-Allow-Origin")).isEqualTo("http://localhost:9000");
}