apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

Patch 1 #1284

Closed xiaosiZhang closed 1 year ago

xiaosiZhang commented 1 year ago

Platforms affected

Motivation and Context

Description

Testing

Checklist

dpogue commented 1 year ago

_allowUniversalAccessFromFileURLs is private API and isn't allowed by Apple.

The correct approach is to use a custom scheme (such as app://) to serve content rather than file:/// URLs. This is supported since Cordova iOS 6.0.0.