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
요놈으로 해결했다.
'모바일 > CORDOVA' 카테고리의 다른 글
cordova 설치 맥기준 (0) | 2023.10.31 |
---|---|
FCM (0) | 2022.03.10 |
Adaptive icon (0) | 2020.11.16 |
아이콘 스플래쉬 이미지생성 (2) | 2020.11.12 |
Promise rejected with non-error: xcode-select: error: tool 'xcodebuild' requires Xcode (0) | 2020.09.15 |