It's a little late, but I just realized I've been solving a bunch of small annoying issues and thought it'd be good to write them down here.


iOS only allows https requests. However, I need to test on a server running locally on http.

NSExceptionAllowsInsecureHTTPLoads is the key you need to set to bypass this restriction. Here's the code you need to add to your Xcode project's Info.plist (beware, some of these keys may already exist in your project):


Here it says localhost, but in my case I had add an extra entry for – my laptop's local ip address – since I was testing my app on-device.


Welcome to DevLog

The open thought platform for developers.

Share your work as you work on it. Easier than a blog, handier than Twitter.

Sign in and write down valuable thoughts that would otherwise be forgotten.