When running on iOS, I get the following message:
Error {message: "The resource could not be loaded because the App T鈥 policy requires the use of a secure connection.", line: 40, column: 37, sourceURL: "file:///app/tns_modules/http/http-request.js", stack: "file:///app/tns_modules/http/http-request.js:40:37鈥]
It seems that this is linked with Apple security policies:
http://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi
Hi @rLoka,
The http
request has been forbidden by default. To be able to make such a request you could include the following lines in your <project_name>/app/iOS/Info.plist
file, which will allow this functionality.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
For further instructions you could review this thread in StackOverflow.
Hope this helps.
@tsonevn Thanks alot my issue fixed
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hi @rLoka,
The
http
request has been forbidden by default. To be able to make such a request you could include the following lines in your<project_name>/app/iOS/Info.plist
file, which will allow this functionality.For further instructions you could review this thread in StackOverflow.
Hope this helps.