Anton Marchenko
Aug 25, 2017 · 1 min read

I dont understand! Why with Postman (https://www.getpostman.com/) extension my requests to server (http://www.mocky.io/) work fine. But with Angular I have error:

XMLHttpRequest cannot load http://www.mocky.io/v2/59a05cfd1100008a02644231. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:4200' is therefore not allowed access.

Exactly, when I set header ‘Access-Control-Allow-Origin’=’*’ (on the server side) everything work fine. But why in Postman it is not necessarily…

)