Even after you have all code implementation in place, you'll still be unable to fetch the data from a local web application successfully. This is because Apple requires App Transport Security (ATS) by default and blocks your calls. Proper configuration of ATS is required because of the HTTPS and security enforcement on iOS.
Even though you can explicitly opt out of ATS by adding the following option to Info.plist, it is not recommended to opt out of ATS entirely:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
The recommended way is to get the domains you are working with exempt from the rules. You can specify which domains are exempt from the rules you define for ATS.
Open the Info.plist file in XCode and add a new...