Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Cross origin for topology endpoints (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmv13 authored Sep 9, 2021
1 parent 0608d76 commit efc5b59
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public ResponseEntity<ConfigEditorAttributes> synchronise(
}

@SecurityRequirement(name = SWAGGER_AUTH_SCHEMA)
@CrossOrigin
@GetMapping(value = "/api/v1/{service}/topologies", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<ConfigEditorAttributes> getTopologies(
@AuthenticationPrincipal Object principal,
Expand All @@ -81,6 +82,7 @@ public ResponseEntity<ConfigEditorAttributes> getTopologies(
}

@SecurityRequirement(name = SWAGGER_AUTH_SCHEMA)
@CrossOrigin
@PostMapping(value = "/api/v1/{service}/topologies/{topology}/restart", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<ConfigEditorAttributes> restartTopology(
@AuthenticationPrincipal Object principal,
Expand Down

0 comments on commit efc5b59

Please sign in to comment.