How to Connect localhost (with invalid certificate) using Alamofire?
问题 This my first project using swift. I am usin alamofire to connect the API. I have a local copy form the API I want to use for debugging - so I can set test data - because the remote API has already real data that I can't mess with. The problem is I am getting the below error when I try to access https://localhost:8443/MyProject Optional(Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “localhost”