Start a new topic

<cordova ios> cors , XMLHttpRequest cannot load only sub index.html

Cordova is developing its own app. It is a hybrid app and supports android and ios.

Currently, there is a problem (cors) that cannot load json from index.html using the ar. Also it works fine on android and only has this issue on ios.

Our own app uses two index.html files, and we will upload the www file structure as a picture.

The first index.html file uses all functions except ar mode, and the second index.html file uses ar mode.

The first index.html problem was solved with the cordova-plugin-wkwebviewxhrfix plugin that the json file could not be loaded. But the second index.html file doesn't solve the same problem. I'll post a picture of the error console.

I want to know the cause of the problem and how to solve it.

<error console>


<file structure >


******************** versionn info ********************

cordova -v 11.0

cordova ios platform -v 6.2.0 

com.wikitude.phonegap.WikitudePlugin -v 8.10.1 (js api)

xcode -v 12.3

Login or Signup to post a comment