Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public void handle(RoutingContext event) {
if (hostIsValid(event)) {
event.next();
} else {
LOG.error("Dev UI: Only localhost is allowed");
response.setStatusCode(403);
response.setStatusMessage("Dev UI: Only localhost is allowed - Invalid host");
response.end();
Expand All @@ -60,6 +59,7 @@ private boolean hostIsValid(RoutingContext event) {
}
}
}
LOG.errorf("Dev UI: Only localhost is allowed, unexpected host: %s", host);
return false;
} catch (MalformedURLException | URISyntaxException e) {
LOG.error("Error while checking if Dev UI is localhost", e);
Expand Down
Loading