mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix(AllowListPlugin): Safely handle default allow navigation policy in allow request (#1342)
This commit is contained in:
parent
7a67e00b9f
commit
aea6b7f6f4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user