Closed josuva1211 closed 6 days ago
👋 @josuva1211
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
Environment
Device information:
Description
I am trying to load a web app through local assets using inapp localhost server, but due to the assets making external API calls I am getting CORS issue. To overcome that, I have used latest feature of InAppWebView, Proxy Controller. After using that also I am getting the CORS issue. Please help what I am doing wrong in the below code Expected behavior:
Current behavior:
Steps to reproduce
Images
Stacktrace/Logcat
[InAppWebViewController] (android) WebView ID 0 calling "onReceivedError" using {request: {headers: {Origin: http://localhost:8080, Referer: http://localhost:8080/asset/en/index.html, Accept: /, Access-Control-Request-Method: GET, Access-Control-Request-Headers: requesttype,scope, Sec-Fetch-Mode: cors}, isRedirect: false, method: OPTIONS, hasGesture: false, isForMainFrame: false, url: MY_API_URL}, error: {description: net::ERR_PROXY_CONNECTION_FAILED, type: -5}}