aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-10-05 18:31:35 +0200
committerjonmv <venstad@gmail.com>2023-10-05 18:31:35 +0200
commit652fff958ced79750b4f7471552691bd0ae99d91 (patch)
tree3e56e0f3987cfc6b6416e585170fab37353b03eb /controller-server/src/test/java
parent8b2aba4edd1b555a46369c0979cbbf923777fe8c (diff)
Include CORS headers
Diffstat (limited to 'controller-server/src/test/java')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/deployment/BadgeApiTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/deployment/BadgeApiTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/deployment/BadgeApiTest.java
index e928fec8318..f932584b4c0 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/deployment/BadgeApiTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/deployment/BadgeApiTest.java
@@ -89,7 +89,9 @@ public class BadgeApiTest extends ControllerContainerTest {
200);
tester.assertResponse(() -> authenticatedRequest("http://localhost:8080/badge/v1/tenant/application/default", "", Method.OPTIONS),
- response -> Assertions.assertEquals(List.of(Map.entry("Allow", "GET, HEAD, OPTIONS"),
+ response -> Assertions.assertEquals(List.of(Map.entry("Access-Control-Allow-Methods", "GET, HEAD, OPTIONS"),
+ Map.entry("Access-Control-Allow-Origin", "*"),
+ Map.entry("Allow", "GET, HEAD, OPTIONS"),
Map.entry("Content-Type", "image/svg+xml; charset=UTF-8")),
response.getHeaders().entries()),
200);