I'm unable to load local files (file://...) with XMLHttpRequest in JS, to files in either Application.persistentDataPath or Application.temporaryCachePath. The same code works fine on Android.
Possibly relevant: https://stackoverflow.com/questions/35554814/wkwebview-xmlhttprequest-with-file-url
It seems that the solution is to add allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs to configuration preferences.
I'm unable to load local files (
file://...) withXMLHttpRequestin JS, to files in eitherApplication.persistentDataPathorApplication.temporaryCachePath. The same code works fine on Android.Possibly relevant: https://stackoverflow.com/questions/35554814/wkwebview-xmlhttprequest-with-file-url
It seems that the solution is to add
allowFileAccessFromFileURLsandallowUniversalAccessFromFileURLsto configuration preferences.