Posts

Post marked as solved
2 Replies
1.8k Views
When running my code on a device that's on iOS 13, I'm getting an error that I'm not seeing on any previous version of iOS. I'm getting: NSURLConnection finished with error - code -1007The code I'm running is:URLSession.shared.dataTask(with: url) { (_, res, _) in // Do stuff }.resume()The server responds with a 302 and resolves fine on the previous iOS versions (redirects once and resolves). On iOS 13 it keeps redirecting to the original URL until it says too many redirects.
Posted
by ben195.
Last updated
.