-1

I am working with react js, node and axios on a small api request project. I have a problem with an api request. The error is CORS missing allow origin. the cross-origin request is blocked, because the CORS is missing. I tried to look at the online documentation but I haven't solved it. Thank you.

nicoeltano
  • 51
  • 1
  • 4

1 Answers1

-1

Its because 'Access-Control-Allow-Origin' header is not present in the response.

Try to add Access-Control-Allow-Origin: *

Header in the node api response and It should work fine

Nitin Dev
  • 99
  • 1