From efc5b59439d401ca45a5049d1cb4f0c09ef19a0f Mon Sep 17 00:00:00 2001 From: Celie Valentiny Date: Thu, 9 Sep 2021 10:18:19 +0200 Subject: [PATCH] Cross origin for topology endpoints (#314) --- .../configeditor/rest/SynchronisationServiceController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config-editor/config-editor-rest/src/main/java/uk/co/gresearch/siembol/configeditor/rest/SynchronisationServiceController.java b/config-editor/config-editor-rest/src/main/java/uk/co/gresearch/siembol/configeditor/rest/SynchronisationServiceController.java index 361d37d66..8fb713b8c 100644 --- a/config-editor/config-editor-rest/src/main/java/uk/co/gresearch/siembol/configeditor/rest/SynchronisationServiceController.java +++ b/config-editor/config-editor-rest/src/main/java/uk/co/gresearch/siembol/configeditor/rest/SynchronisationServiceController.java @@ -69,6 +69,7 @@ public ResponseEntity synchronise( } @SecurityRequirement(name = SWAGGER_AUTH_SCHEMA) + @CrossOrigin @GetMapping(value = "/api/v1/{service}/topologies", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity getTopologies( @AuthenticationPrincipal Object principal, @@ -81,6 +82,7 @@ public ResponseEntity getTopologies( } @SecurityRequirement(name = SWAGGER_AUTH_SCHEMA) + @CrossOrigin @PostMapping(value = "/api/v1/{service}/topologies/{topology}/restart", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity restartTopology( @AuthenticationPrincipal Object principal,