I am trying to do a POST request with some multipart data, it works perfectly on every other browser and device that I have checked but on iOS Safari it does not work and gives these 3 errors:
Origin [URL HERE] is not allowed by Access-Control-Allow-Origin.
Failed to load resource: Origin [URL HERE] is not allowed by Access-Control-Allow-Origin.
XMLHttpRequest cannot load [URL HERE] due to access control checks.
On my server, I believe I have setup cors correctly.
BTW, I am using the iOS Simulator and it does work on MacOS Safari
Any ideas?
Do you have a mix of http/https traffic such as your webapp being hosted in https, but your POST going to an http server? Unfortunately Safari doesn't give great error messaging if this is what's happening. I'd check with curl
to see if the url that you're requesting from returns the data and headers that you expect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With