Skip to content

Commit aea6b7f

Browse files
authored
fix(AllowListPlugin): Safely handle default allow navigation policy in allow request (#1342)
1 parent 7a67e00 commit aea6b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/src/org/apache/cordova/AllowListPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public Boolean shouldAllowNavigation(String url) {
122122

123123
@Override
124124
public Boolean shouldAllowRequest(String url) {
125-
return (this.shouldAllowNavigation(url) || this.allowedRequests.isUrlAllowListed(url))
125+
return (Boolean.TRUE.equals(this.shouldAllowNavigation(url)) || this.allowedRequests.isUrlAllowListed(url))
126126
? true
127127
: null; // default policy
128128
}

0 commit comments

Comments
 (0)