App Transport Security Xcode 7 beta 6

前端 未结 5 573
臣服心动
臣服心动 2020-12-07 22:41

I\'m currently working on Xcode 7 beta 6. I\'m trying to send a \"DELETE\" request to http://mySubdomain.herokuapp.com

The error I receive is:

5条回答
  •  伪装坚强ぢ
    2020-12-07 23:37

    Appreciate you've tried adding the following, to your plist file:

    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    
    

    ... you might want to try to change your line:

    let url = NSURL(string:"https://mysubdomain.herokuapp.com/42kh24kh2kj2g24/clean")
    

    to:

    let url = NSURL(string:"http://mysubdomain.herokuapp.com/42kh24kh2kj2g24/clean")
    

    Apologies if you have tried this. I can understand how frustrating it is when you think you've exhausted all avenues.

    But as soon as I ran up my App on Xcode 7, so that I could test our Apps, one kicked off with the "App Transport Security" problem. We're using Oracle-based web-services and it's too late in the day to start configuring digital certificates for SSL-based HTTP. So, the above addition to my plist file did the trick. Appreciate you say you've tried this. But, just to help anyone else, it did actually work for me. It need to as I have no immediate way of enabling SSL on our Oracle box.

提交回复
热议问题