CB-1101: Specifying Jellybean means that we have to override the default CORS policy

This commit is contained in:
Joe Bowser 2012-07-31 11:48:38 -07:00
parent a29b8e5b36
commit 79feb6d5d2

View File

@ -191,6 +191,11 @@ public class CordovaWebView extends WebView {
//Set the nav dump for HTC 2.x devices (disabling for ICS/Jellybean)
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)
settings.setNavDump(true);
//Jellybean rightfully tried to lock this down. Too bad they didn't give us a whitelist
//while we do this
if(android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)
settings.setAllowUniversalAccessFromFileURLs(true);
// Enable database
settings.setDatabaseEnabled(true);