Recently in Android we are facing a CORS error while trying to fetch a local image in the webview via a Javascript file. This image gets downloaded from server at the very first instance of opening our application. Later while opening the webview from within the app, the image gets loaded from persistent datapath of Android. The following error was observed when we inspected the webview:
"Fetch API cannot load file://{path to file}. URL scheme "file" is not supported."
Recently in Android we are facing a CORS error while trying to fetch a local image in the webview via a Javascript file. This image gets downloaded from server at the very first instance of opening our application. Later while opening the webview from within the app, the image gets loaded from persistent datapath of Android. The following error was observed when we inspected the webview:
"Fetch API cannot load file://{path to file}. URL scheme "file" is not supported."
Need help fixing this.