oracle / cordova-plugin-wkwebview-file-xhr

Cordova Plugin for WebView File XHR
Universal Permissive License v1.0
138 stars 120 forks source link

XHR calls do not work in iOS Lockdown Mode #91

Open gjdownes opened 1 year ago

gjdownes commented 1 year ago

When switching the device Lockdown Mode on XHR calls fail to load.

I've traced this to the following code: Screenshot 2023-06-05 150334

This issue is occurring on iOS 16.4.1a. Let me know if any additional information could be helpful.

mohamedmaher2021 commented 10 months ago

Facing Same issue, Did u find any solution ?

gjdownes commented 10 months ago

We ended up removing the library and leveraging the app/scheme approach mentioned here: https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html

You will need to adjust your server to allow CORS requests from your chosen app/scheme origin.

We encountered issues running our app in iOS 12 and earlier but otherwise no issues. I don't think this plugin is required anymore.

mohamedmaher2021 commented 10 months ago

Thanks, Its working now after removing the plugin