I have Coronium 1.92 running on Digital Ocean and I’m using mod_coronium v1.92.5 in my Corona app.
I set everything up from the tutorial a few months ago and was testing on iOS 7 & 8 and Android 4 & 5 where it all seemed to work well. Then when I got an iOS 9 test device I came to learn about the ipv6 transition and Apple’s new App Transport Security policy.
I get the following error in iOS9 where XXX.XXX.XX.X is my Coronium instance IP :
ERROR: network request failed: http://XXX.XXX.XX.X/1/code/createUser [-1022: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.]
I tried adding NSExceptionDomains table to NSAppTransportSecurity in build.settings , but being an IP address that obviously didn’t work. The only thing that seemed to work was adding NSAllowsArbitraryLoads = true , which I’m reluctant to use as it’s likely to result in apple rejection.
I also tried using http://xip.io/ to provide wildcard DNS for my Coronium instance IP, which works but I’m guessing this is a dirty solution?
Is there a best practice for resolving this? Is it something I need to change on my Digital Ocean Droplet setup? It’s a bit over my head right now if I’m honest. Please help.