App Transport Security Xcode 7 beta 6

前端 未结 5 587
臣服心动
臣服心动 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:12

    I have solved it with adding some key in info.plist. As I am using objective C for some native application.

    The steps I followed are:

    1. Opened my Projects info.plist file

    2. Added a Key called NSAppTransportSecurity as a Dictionary.

    3. Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as like following image.

    Clean the Project and Now Everything is Running fine as like before.

    Ref Link:

    1. https://stackoverflow.com/a/32631185/2905967

    2. https://stackoverflow.com/a/32609970

提交回复
热议问题