fix NPE in adapter for invalid cors requests
This commit is contained in:
parent
eb4ffbca29
commit
457039d7ba
1 changed files with 1 additions and 2 deletions
|
@ -90,8 +90,7 @@ public class AuthenticatedActionsHandler {
|
||||||
if (allowedOrigins == null || (!allowedOrigins.contains("*") && !allowedOrigins.contains(origin))) {
|
if (allowedOrigins == null || (!allowedOrigins.contains("*") && !allowedOrigins.contains(origin))) {
|
||||||
if (allowedOrigins == null) {
|
if (allowedOrigins == null) {
|
||||||
log.debugv("allowedOrigins was null in token");
|
log.debugv("allowedOrigins was null in token");
|
||||||
}
|
} else {
|
||||||
if (!allowedOrigins.contains("*") && !allowedOrigins.contains(origin)) {
|
|
||||||
log.debugv("allowedOrigins did not contain origin");
|
log.debugv("allowedOrigins did not contain origin");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue