0

Hey I am facing this Issue when I am Hitting API from my angular 2 application

No 'Access-Control-Allow-Origin' header is present on the requested resource.

How to send header request in get method ?

4
  • 2
    You need to implement CORS on the server side. There are lots of samples out there on SO and elsewhere. Commented Jul 6, 2017 at 19:51
  • Similar question was already asked here: stackoverflow.com/questions/36768418/… Commented Jul 6, 2017 at 20:06
  • Possible duplicate of How to make CORS-enabled HTTP requests in Angular 2? Commented Jul 6, 2017 at 20:59
  • 1
    But i have 2 different api with different endpoints, with one it works proper, and with other it returns cors error Commented Jul 6, 2017 at 21:11

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.