let manager = SessionManager.default
manager.delegate.sessionDidReceiveChallenge = {
session,challenge in
return (URLSession.AuthChallengeDisposition.useCredential,URLCredential(trust:challenge.protectionSpace.serverTrust!))
}
Swift 中使用Alamofire 免证书的设置
最新推荐文章于 2024-03-05 16:02:13 发布