Hi,
I have been running into this error whenever I try to send https request from my ios simulator to my server. Below is my code for sending request:
I have ssl certificate from letsencrypt setup on my server and it works fine with Android, Chrome and tests well with SSL Lab.
I know that NSURLErrorDomain: -1003 Error means can't find the host, but I have no idea why it couldn't find this host.
BTW: I have ATS disabled in info.plist.
Any help would be greatly appreciated.
I have been running into this error whenever I try to send https request from my ios simulator to my server. Below is my code for sending request:
Code Block let url = URL(string: "https://www.mywebsite.com/signin")! var request = URLRequest(url: url) request.httpMethod = "POST" NSURLConnection.sendAsynchronousRequest(request, queue: OperationQueue.main) {(response, data, error) in guard let data = data else { return } print(String(data: data, encoding: .utf8)!) }
I have ssl certificate from letsencrypt setup on my server and it works fine with Android, Chrome and tests well with SSL Lab.
I know that NSURLErrorDomain: -1003 Error means can't find the host, but I have no idea why it couldn't find this host.
BTW: I have ATS disabled in info.plist.
Any help would be greatly appreciated.