mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
fix(AllowListPlugin): Safely handle default allow navigation policy in allow request (#1342)
This commit is contained in:
@@ -122,7 +122,7 @@ public class AllowListPlugin extends CordovaPlugin {
|
||||
|
||||
@Override
|
||||
public Boolean shouldAllowRequest(String url) {
|
||||
return (this.shouldAllowNavigation(url) || this.allowedRequests.isUrlAllowListed(url))
|
||||
return (Boolean.TRUE.equals(this.shouldAllowNavigation(url)) || this.allowedRequests.isUrlAllowListed(url))
|
||||
? true
|
||||
: null; // default policy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user