network.request

Hi there,
 
As you know App Transport Security started from iOS 9.0 and OS X v10.11.
Many services use http and I need modify my codes in a build.settings.

I think you also need add these codes in a build.settings for network.request() via http at mac apps.
 
[lua] osx =
{
plist =
{
NSAppTransportSecurity =
{
NSExceptionDomains =
{
[“services.your.domain”] =
{
NSIncludesSubdomains = true,
NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,
NSTemporaryExceptionMinimumTLSVersion = “1.0”,
NSTemporaryExceptionRequiresForwardSecrecy = false,
NSAllowsArbitraryLoads = true,
},
},
},
},
},
[/lua]

It work well my build app for mac(OS 10.11.3 El Capitan) and for iPhone 6S(iOS 9.2.1).

Corona 2830

Thank you.

I’m not sure what your question is but, yes, if you want to access insecure network endpoints from an iOS or OS X app you need to specify them in your Info.plist via your build.settings.  Accessing insecure web sites from your app exposes your users to various exploits when using shared WiFi and should be avoided.

Note it is not recommended to simply disable App Transport Security as your example above does, you should specify the specific insecure servers you need to access by name.

Hi Perry,

Thanks for your reply.

I think most important things is Corona Labs update API documents around network how we should coding.

And I hope you also update sample codes.

I have a meet-up and hands-on for beginners in Japan.

So I write this topic.

Thank you.

I’m not sure what your question is but, yes, if you want to access insecure network endpoints from an iOS or OS X app you need to specify them in your Info.plist via your build.settings.  Accessing insecure web sites from your app exposes your users to various exploits when using shared WiFi and should be avoided.

Note it is not recommended to simply disable App Transport Security as your example above does, you should specify the specific insecure servers you need to access by name.

Hi Perry,

Thanks for your reply.

I think most important things is Corona Labs update API documents around network how we should coding.

And I hope you also update sample codes.

I have a meet-up and hands-on for beginners in Japan.

So I write this topic.

Thank you.