I have a strange situation. I have a React app which invokes an API Gateway endpoint REST API (GET method). Whenever I run the app (from localhost), I am getting an "unauthorized" (401) error response.
However when I invoke the same API on POSTMAN , I get the correct response with 200 status. And then strangely when I run the app, I am able to get the same correct response with 200 status on the browser also!
I am not able to resolve for the past two weeks, so would appreciate any help on this please. Thanks in advance!