With Xcode 7 testing an iOS 9 app is unable to obtain data from a http request

后端 未结 3 1595
终归单人心
终归单人心 2021-01-16 11:29

I am developing an application in iOS. For my development I am using Xcode beta7. Before, I used to test my app in my mobile with iOS 8.4 after updating to iOS 9, I can\'t i

3条回答
  •  春和景丽
    2021-01-16 11:52

    Add this line to your .plist file:

    Source:

    NSAppTransportSecurity
    
        NSExceptionDomains
        
            yoursite.com
            
                NSIncludesSubdomains
                
                NSTemporaryExceptionAllowsInsecureHTTPLoads
                
            
        
    
    

    Workaround, edited because shouldn't be used. Secure your data

提交回复
热议问题