IOS에서 왜 작동이 되지 않는가..
stackoverflow.com/questions/36451720/cordova-ios-cross-origin-requests-are-only-supported-for-http
Cordova iOS Cross origin requests are only supported for HTTP
I'm building an iOS app and recently upgraded cordova-ios to 4.1.0 and started using: cordova-plugin-wkwebview-engine. The problem is that now I get the error message Cross origin requests are only
stackoverflow.com
WK웹뷰로 바꾸는걸 처음에 적용했었는데 최신버전에서의 에러가있다 그거 고치다 암걸릴거같음..
Install this one plugin (cordova-ios 6+) cordova plugin add https://github.com/globules-io/cordova-plugin-ios-xhr
then set
<preference name="AllowUntrustedCerts" value="true" /> <preference name="InterceptRemoteRequests" value="all" /> <preference name="allowFileAccessFromFileURLs" value="true" /> <preference name="allowUniversalAccessFromFileURLs" value="true" />
https://github.com/globules-io/cordova-plugin-ios-xhr
요놈으로 해결했다.