i'm building ios app , upgraded cordova-ios 4.1.0 , started using: cordova-plugin-wkwebview-engine.
the problem error message cross origin requests supported http
while trying load dependencies, app won't start.
it's trying load systemjs dependencies on file://, included in config.js.
i have no clue how fix this. have experience bevaviour?
cordova version: 6.1,0 cordova ios version: 4.1.0
related config.xml bit:
<access origin="*" /> <feature name="cdvwkwebviewengine"> <param name="ios-package" value="cdvwkwebviewengine" /> </feature> <preference name="cordovawebviewengine" value="cdvwkwebviewengine" />
i had same issue cordova project (actually ionic v1) , fix following command:
cordova plugin add https://github.com/apache/cordova-plugins.git#wkwebview-engine-localhost
this install webserver runs locally , error should gone after that. after run command, run:
cordova prepare ios
or remove plugins , reinstall:
rm -rf plugins/ cordova platform add ios
make sure have in config.xml:
<access origin="*" /> <feature name="cdvwkwebviewengine"> <param name="ios-package" value="cdvwkwebviewengine" /> </feature> <preference name="cordovawebviewengine" value="cdvwkwebviewengine" />
Comments
Post a Comment