A AHilton Active Member Licensed User Longtime User Sep 8, 2015 #1 I'm getting this error ... HTTP Job Error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. ... When trying to connect via the iHTTP V1.01 and HttpJob / HttpUtils2Service. I'm porting an Android app over to iOS and haven't changed much at all in the http stuff so I may not be going about it correctly from the beginning. I'm running this on a local Mac with the simulator (verson 9) on XCode 7 beta. It's trying to connect to another computer on the same LAN running a B4J server. Does something need to be changed in the code or is it something to do with settings on the Mac/Simulator?
I'm getting this error ... HTTP Job Error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. ... When trying to connect via the iHTTP V1.01 and HttpJob / HttpUtils2Service. I'm porting an Android app over to iOS and haven't changed much at all in the http stuff so I may not be going about it correctly from the beginning. I'm running this on a local Mac with the simulator (verson 9) on XCode 7 beta. It's trying to connect to another computer on the same LAN running a B4J server. Does something need to be changed in the code or is it something to do with settings on the Mac/Simulator?
Erel B4X founder Staff member Licensed User Longtime User Sep 9, 2015 #2 It is related to a new security feature in iOS. See this post: http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ You can disable ATS with this line: Code: Copy #PlistExtra:<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict> Upvote 0
It is related to a new security feature in iOS. See this post: http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ You can disable ATS with this line: Code: Copy #PlistExtra:<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict>
A AHilton Active Member Licensed User Longtime User Sep 9, 2015 #3 That works. Thanks. When the app goes "live" (as opposed to the testing I'm doing now), it'll be connecting to a B4J server running on a machine with a webserver with SSL certs. Should I re-enable ATS for the "live" app and support SSL in the B4J application? Upvote 0
That works. Thanks. When the app goes "live" (as opposed to the testing I'm doing now), it'll be connecting to a B4J server running on a machine with a webserver with SSL certs. Should I re-enable ATS for the "live" app and support SSL in the B4J application?
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2015 #4 Yes, you can run the B4J server over SSL and then remove this line (use conditional compilation for this). Upvote 0
Yes, you can run the B4J server over SSL and then remove this line (use conditional compilation for this).