My problem is that I am trying to login to asp.net core backend with angular2.
The response contains token and is 200 OK
, but always the error called with status 0 unknown error
and this error appears:
Failed to load http://localhost:5000/api/token: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
so any help.