you need to do something like
if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN)
wv.getSettings().setAllowUniversalAccessFromFileURLs(true);
More Related Contents:
- Origin is not allowed by Access-Control-Allow-Origin
- How to make cross domain request [duplicate]
- “Origin null is not allowed by Access-Control-Allow-Origin” in Chrome. Why? [duplicate]
- Cross-domain XMLHttpRequest using background pages
- http request has been block from https
- Send POST data using XMLHttpRequest
- How does JavaScript handle AJAX responses in the background?
- Detect rotation of Android phone in the browser with JavaScript
- enabling cross-origin resource sharing on IIS7
- jQuery has deprecated synchronous XMLHTTPRequest
- How can I hide the Android keyboard using JavaScript?
- Method for streaming data from browser to server via HTTP
- How to upload a file using jQuery.ajax and FormData
- cross domain localstorage with javascript
- Are there any standards for mobile device web browsers in terms of thread sleeping? [closed]
- Android Web-View : Inject local Javascript file to Remote Webpage
- Error handling in getJSON calls
- Android 4.2.1, WebView and javascript interface breaks
- Facebook: Unsafe JavaScript issue (document.domain values should be same)
- Run javascript code in Webview
- JavaScript innerHTML is not working for IE?
- How does the ‘Access-Control-Allow-Origin’ header work?
- Navigate to screen after opening a notification?
- Page loaded over HTTPS but requested an insecure XMLHttpRequest endpoint
- Overriding XMLHttpRequest.open()
- Does React Native compile JavaScript into Java for Android?
- Prompt file download with XMLHttpRequest
- Reference javax.script.ScriptEngine in android or evaluate a javascript expression
- How to detect if web app running standalone on Chrome mobile
- React-Native assembleRelease fails for task ‘:app:bundleReleaseJsAndAssets’