Skip to content

Commit

Permalink
Localhost check is useless since now we use dev.orcid.org
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Nov 15, 2024
1 parent a4a6cd3 commit c95226d
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ public boolean allowed(HttpServletRequest request) throws URISyntaxException {
if (validateDomain(request.getHeader("origin"))) {
return true;
}
} else {
// Check referer header for localhost
String referer = request.getHeader("referer");
if (!PojoUtil.isEmpty(referer)) {
URI uri = new URI(request.getHeader("referer"));
String domain = uri.getHost();
if (LOCALHOST.equals(domain)) {
return true;
}
}
}

// If it is and invalid domain, validate the path
Expand Down

0 comments on commit c95226d

Please sign in to comment.