Skip to content

Commit

Permalink
Merge pull request #7138 from ORCID/RemoveLocalhostCheck
Browse files Browse the repository at this point in the history
Localhost check is useless since now we use dev.orcid.org
  • Loading branch information
leomendoza123 authored Nov 15, 2024
2 parents c2bd872 + 58f859c commit e054616
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 e054616

Please sign in to comment.