Skip to content

Commit

Permalink
15371 remove URI creation for X-Forwarded-Host
Browse files Browse the repository at this point in the history
  • Loading branch information
palina-krukovich committed Oct 16, 2023
1 parent 146d512 commit e2f3e88
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ public List<LayerDetailsDto> updateListOfLayers(@PathVariable("id") UUID appId,
@GetMapping(path = "/configuration")
public AppDto getAppConfig(@RequestParam(name = "appId", required = false) UUID appId,
@RequestHeader(name = "X-Forwarded-Host", required = false) String xForwardedHost) {
String domain = null;
try {
domain = new URI(xForwardedHost).getHost();
} catch (Exception ignored) {
}

return applicationService.getAppConfig(appId, domain);
return applicationService.getAppConfig(appId, xForwardedHost);
}
}

0 comments on commit e2f3e88

Please sign in to comment.