Skip to content

Commit

Permalink
fix(PluginManager): AllowNavigation default policy to handle scheme &…
Browse files Browse the repository at this point in the history
… hostname (apache#1349)
  • Loading branch information
erisu authored and wedgberto committed May 17, 2022
1 parent 46d2c69 commit bdb7668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/org/apache/cordova/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public boolean shouldAllowNavigation(String url) {
}

// Default policy:
return url.startsWith("file://") || url.startsWith("about:blank");
return url.startsWith(getLaunchUrlPrefix()) || url.startsWith("about:blank");
}


Expand Down

0 comments on commit bdb7668

Please sign in to comment.