3
I have an App on Swift that consumes data from an API, on Swift I had to enable on info.plist adding:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Dai need to enable the same in angular, how is it? I saw in some places saying that you need to do something on the server but I didn’t even need...
Message:
Blocked cross-origin request: Same origin policy (Same Origin Policy) prevents reading the remote resource on http://jsonplaceholder.typicode.com/comments. (Reason: the CORS header 'Access-Control-Allow-Origin' is not present).