“NSURLErrorDomain” - code: 18446744073709550594 Ajax call on Xcode 7

前端 未结 4 1119
清酒与你
清酒与你 2021-01-18 12:14

I am trying to make an asynchronous call from Xcode 7 as follows and I end up seeing this error \"NSURLErrorDomain\" - code: 18446744073709550594 This code was fine when I u

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 12:55

    I got this exact error code when trying to connect to a server with ancient TLS support. Workaround: add NSExceptionRequiresForwardSecrecy to the app's Info.plist:

    NSExceptionDomains 
    
      MY_SERVER_DOMAIN
      
        NSExceptionRequiresForwardSecrecy
        
      
      
    
    

提交回复
热议问题