You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I introduced UNITYWEBVIEW_IOS_ALLOW_FILE_URLS in #788 for enabling allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs, and updated binaries. You can enable these settings by defining UNITYWEBVIEW_IOS_ALLOW_FILE_URLS. Please note, however, that these are private APIs so the app enabling them may be rejected.
I'm unable to load local files (
file://...
) withXMLHttpRequest
in JS, to files in eitherApplication.persistentDataPath
orApplication.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
andallowUniversalAccessFromFileURLs
to configuration preferences.The text was updated successfully, but these errors were encountered: