I\'m developing an app that connects to a web service for most of it\'s operations. As a shortcut, I\'d like to run a copy of my development server on my machine. Question i
In swift 5 just call:
http://localhost:/file_path
but you will need to add this part to the project Info.plist.
Info.plist
NSAppTransportSecurity NSAllowsArbitraryLoads
Otherwise this error is going to happen.
Cannot start load of Task . since it does not conform to ATS policy.