Post marked as solved
Post marked as solved with 2 replies, 1,832 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.