mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
CB-1101: Specifying Jellybean means that we have to override the default CORS policy
This commit is contained in:
parent
a29b8e5b36
commit
79feb6d5d2
@ -192,6 +192,11 @@ public class CordovaWebView extends WebView {
|
||||
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);
|
||||
String databasePath = this.cordova.getActivity().getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath();
|
||||
|
Loading…
Reference in New Issue
Block a user