NSURLSession "HTTP load failed kCFStreamErrorDomainSSL, -9813 ; Self signing certificate

后端 未结 7 1339
长情又很酷
长情又很酷 2020-12-04 21:42

I\'m trying to connect my iOS app to an HTTPS Rails app which is currently run on a local host in my network. I can access the site from my browser with https://myIP:3

7条回答
  •  春和景丽
    2020-12-04 22:37

    try change the session variable, this change help me

    let config = URLSessionConfiguration.default
    let session = URLSession(configuration: config)
    

提交回复
热议问题