nickredding opened a new issue #931: URL: https://github.com/apache/cordova-ios/issues/931
# Bug Report Using ``` <preference name="scheme" value="app" /> <preference name="hostname" value="localhost" /> ``` renders document.cookie completely non-functional. ### What is expected to happen? To see this just do ``` cordova create myApp org.apache.cordova.myApp myApp cd myApp (add scheme and hostname preferences to config.xml) cordova platform add ios@^6.1.0 ``` Now load myApp into the emulator from xcode, then go to the Safari web inspector and try ``` document.cookie="foo=bar" document.cookie ``` Result is empty string. Removing the scheme and hostname preferences enables document.cookie, but then you don't have the benefit of the scheme. With ios 5 I used cordova-plugin-wkwebview-file-xhr to enable loading both local and remote urls, and cordova-plugin-wkwebviewxhrfix to enable Javascript trap information to be passed to my code. With ios 6.1.0 I am still using cordova-plugin-wkwebview-file-xhr (I just removed the dependency on the wkwebview plugin) and this removes the need for the scheme and hostname preferences. However, the scheme and hostname preferences are necessary for Javascript trap information to be passed to my code (other people have commented that cordova-plugin-wkwebviewxhrfix is not compatible with ios 6.0.0). ### Command or Code See above ### Environment, Platform, Device Mac Mini, iPhone 11 xcode simulator ### Version information Cordova 9.0.0, Cordova ios 6.1.0, xcode 11.5 ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
