App Transport Security - Http Connection

Hello,

I my dev sandbox, I have to use http://1.1.1.1/mobile/dev (This type of IP address to connect to developer APIS) in Xcode 7. I tried it adding in subdomain but everytime Xcode gives me http:// security error.


The only way to run code is NSAllowsArbitraryLoads (which is not right way).


Can anyone please help, how to add IP address under NSExceptionDomains, So only that IP can be used for http Exceptions instead of full code.


Any help is appreciated.



Thanks

Replies

NSExceptionDomains
does not support IP addresses. I recommend that you read the thread App Transport Security and local networking, which discusses this in some detail.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"