From 4c506b8b819ad9e69dbf58166db3037ed7492897 Mon Sep 17 00:00:00 2001 From: alig Date: Tue, 26 Jan 2021 14:49:36 +0100 Subject: [PATCH] More CORS for c4dt. --- .../notifyme/sdk/backend/ws/controller/NotifyMeController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notifyme-sdk-backend/notifyme-sdk-backend-ws/src/main/java/ch/ubique/notifyme/sdk/backend/ws/controller/NotifyMeController.java b/notifyme-sdk-backend/notifyme-sdk-backend-ws/src/main/java/ch/ubique/notifyme/sdk/backend/ws/controller/NotifyMeController.java index 4c6ddcbd..05b39b27 100644 --- a/notifyme-sdk-backend/notifyme-sdk-backend-ws/src/main/java/ch/ubique/notifyme/sdk/backend/ws/controller/NotifyMeController.java +++ b/notifyme-sdk-backend/notifyme-sdk-backend-ws/src/main/java/ch/ubique/notifyme/sdk/backend/ws/controller/NotifyMeController.java @@ -20,6 +20,7 @@ import org.springframework.http.ResponseEntity; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -39,6 +40,7 @@ @Controller @RequestMapping("/v1") +@CrossOrigin(origins = { "https://notify-me.c4dt.org" }) public class NotifyMeController { private static final String HEADER_X_KEY_BUNDLE_TAG = "x-key-bundle-tag";