Introduce GraphQL media type static final

See gh-45487
See gh-45494
This commit is contained in:
Stéphane Nicoll
2025-05-08 21:44:43 -07:00
committed by Phillip Webb
parent 36fb1e9b4b
commit 564bfeef95
2 changed files with 6 additions and 4 deletions

View File

@@ -224,8 +224,8 @@ class GraphQlWebMvcAutoConfigurationTests {
.content("{\"query\": \"" + query + "\"}"))
.satisfies((result) -> assertThat(result).hasStatusOk()
.headers()
.containsEntry(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN, List.of("https://example.com"))
.containsEntry(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS, List.of("true")));
.hasValue(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN, "https://example.com")
.hasValue(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS, "true"));
});
}