Skip to content

Unable to load local files with XHR on iOS #785

Closed
@NonSpicyBurrito

Description

@NonSpicyBurrito

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions