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.
Asked
Active
Viewed 1,130 times
-1
-
=> https://stackoverflow.com/help/how-to-ask – jub0bs Dec 26 '21 at 22:22
1 Answers
-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