I have a webapp which I am loading inside a webview of android.
The app consist some huge files of 1MBs which is not cached in webview so the time taking to load the files each time is little high. as an experiment I wanted to include those files within the asset folder of the app and load it from there using javascript fetch inside the webview.
But I ended up getting the cors exception like below
VM45:769 Fetch API cannot load `file:///android_asset/kixr_detector_001.wasm. URL scheme must be "http" or "https" for CORS request.`
Is there anyway to load a file which residing in android asset folder to an app running in webview ? or another way to cache these files.
Any help is much appreciated. Thanks in advance.