Simplified check for ssl, since x-forward is sorted by Undertow
This commit is contained in:
parent
851401c40a
commit
e92980b776
1 changed files with 1 additions and 9 deletions
|
@ -637,15 +637,7 @@ public class TokenService {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uriInfo.getBaseUri().getScheme().equals("https")) {
|
return uriInfo.getBaseUri().getScheme().equals("https");
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("https".equals(headers.getHeaderString("X-Forwarded-Proto"))) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue