Android-AdvancedWebView icon indicating copy to clipboard operation
Android-AdvancedWebView copied to clipboard

ERR_ACCESS_DENIED

Open Anth06ny opened this issue 5 years ago • 1 comments

Hello,

I ll try to switch my application from Webview to your AdvancedWebView but when i try lo load this

wv.loadUrl("file:///${filesDir.path}/mywebsite/index.html?id=browser-bbaia")

I have ERR_ACCESS_DENIED on the AdvancedWebView. But it's work with normal WebView

Do you have any idea ?

Anth06ny avatar Jun 17 '19 12:06 Anth06ny

Does one of these two calls help?

mWebView.getSettings().setAllowFileAccess(true);

// or

mWebView.setAllowAccessFromFileUrls(mWebView.getSettings(), true);

Ideally, you should test them in isolation (and only use both if necessary), so that we know which one is needed.

ocram avatar Jun 19 '19 22:06 ocram