I\'m embedding a website in a UIWebView. During development I have it pointed at localhost. The problem is that whenever it hits a \"https://\" url it doesn\'t load. When I
Swift 3/4 version for Nick Lockwood answer.
This is just for testing/development purposes:
extension NSURLRequest { #if DEBUG static func allowsAnyHTTPSCertificate(forHost host: String) -> Bool { return true } #endif }