Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix CORS error on WebView Chrome 76?

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.

It works normally on Chrome 75. How can I disable this CORS checking on WebView Android? Or is there any other solutions

like image 386
o0omycomputero0o Avatar asked Jan 25 '23 23:01

o0omycomputero0o


1 Answers

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.

UPDATE: Chrome 76.0.3809.111 (rolled out to 100% user) fixed the problem; now just update chrome to fix.

like image 126
o0omycomputero0o Avatar answered Jan 29 '23 19:01

o0omycomputero0o