I have an Swift App that consumes data from an API, in swift I had to enable it in info.plist adding:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
I need to enable the same angular, how is it? I saw in some places saying that I need to do something on the server but I did not even need to ...
Message:
Cross-origin request blocked: Same source policy (Same Origin Policy) prevents the remote resource from being read link . (Reason: CORS header 'Access-Control-Allow-Origin' is not present).