I have an angular 2 application which is running on localhost:4200 and have api server on the other side which running on localhost:1713 with some apies such as products,customers ... and web api server default apies such as value API.
I give access-control-allow-origin just to my domain that my angular 2 application running ( localhost:4200 ) with this access i can send request to all apies which require authentication (I add manually access-token to the request header that get from postman).
Until here everything is OK but when i make request to my token api with this url : http://localhost:1713/token with my password and username from my angular app I get 'unsupported grant_type' error.
Please help me how to fix it. I want this and give access just to my angular 2 app domain not for all domains.