如何修复WebView Chrome 76的CORS错误? [英] How to fix CORS error on WebView Chrome 76?
问题描述
我已经从我的应用程序向API服务器发送了请求;在WebView Chrome 76.0.3809.89 API上无法调用 日志中显示以下错误:
I've sent request from my app to API server; on WebView Chrome 76.0.3809.89 API cannot be called The following error is shown on the log:
Access to XMLHttpRequest at 'https://.....' from origin 'file://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
它在Chrome 75上正常运行. 如何在WebView Android上禁用此CORS检查?还是有其他解决方案
It works normally on Chrome 75. How can I disable this CORS checking on WebView Android? Or is there any other solutions
推荐答案
这似乎是Chrome 76的错误 https://bugs.chromium.org/p/chromium/issues/detail?id = 991107 关闭应用程序,然后再次运行,然后再次运行.
It seems to be the bug of Chrome 76 https://bugs.chromium.org/p/chromium/issues/detail?id=991107 Close app and run again then it worked again.
更新:Chrome 76.0.3809.111(向100%用户推出)解决了该问题;现在只需更新chrome即可修复.
UPDATE: Chrome 76.0.3809.111 (rolled out to 100% user) fixed the problem; now just update chrome to fix.
这篇关于如何修复WebView Chrome 76的CORS错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!