尝试
loadUrl(String url, Map<String, String> extraHeaders)
要将标头添加到资源加载请求中,请定制WebViewClient并重写:
API 24+:WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request)orWebResourceResponse shouldInterceptRequest(WebView view, String url)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)