How to fix iOS 12 Safari Cors preflight error?
It's a bug in iOSv12, but it's already fixed in iOSv12.1 beta (16B5059d), assuming the current beta code makes it into production.
The problem is that iOSv12 WebKit preflight OPTIONS calls don't leave the device. I've run WireShark and the iOSv12 simulator to confirm this.
False CORS failure only in iOS mobile safari when uploading images
You're right, the CORS error message is very misleading. I've been struggling with the exact same issue for the past couple of days and it turned out the image I was trying to upload from my phone was too large for the app server I'm using which is nginx on Kubernetes; so the fix which works for me is to just add this annotation to the ingress configuration
nginx.ingress.kubernetes.io/proxy-body-size: "0"
to removes any restriction on upload size.
Preflight error when using Authorization header on iOS 15.5/Xcode - Cordova-ios@6.1.1
It's because there is no origin on WKWebView so the Preflight will fail. Did you set any origin and scheme in your config.xml ?
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
You can also try https://github.com/globules-io/cordova-plugin-ios-xhr
Related Topics
React-Native, How to Get File-Asset Image Absolute Path
Nsattributedstring Click Event in Uilabel Using Swift
How to Add Constraints Programmatically Using Swift
Undefined Symbols For Architecture Arm64
Getting and Setting Cursor Position of Uitextfield and Uitextview in Swift
What Is "Constrain to Margin" in Storyboard in Xcode 6
Submit to App Store Issues: Unsupported Architecture X86
"Warning: Iphone Apps Should Include an Armv6 Architecture" Even With Build Config Set
Creating a Uicollectionview Programmatically
How to Get the Root Directory of My iOS App
Ios Swift - Objective C Code Migration to Swift
How to Programmatically Send Sms on the Iphone
Nsurlsession/Nsurlconnection Http Load Failed on iOS 9
Assertion Failure in Dequeuereusablecellwithidentifier:Forindexpath:
How to Convert String Date to Nsdate
How to Record Audio on Iphone With Avaudiorecorder
How to Customize the Background/Border Colors of a Grouped Table View Cell