0

I am trying to use the PostMan client to hit a REST API. Using the client, I get a 401. If I take the exact same information and use the PostMan Chrome Extension, I get a 200. Reading the forums, someone mentioned that the REST API needs to have CORS enabled (because PostMan is basically a webapp), but I am a little confused as to how I would do that. On the server side, I have the ability to plug in allowed CORS domains, but if it is coming from my local machine, it doesn't have a domain, right?

tscrip
  • 140
  • 3
  • 14
  • Does this answer your question? [CORS with POSTMAN](https://stackoverflow.com/questions/36250615/cors-with-postman) – Mickael B. Jan 10 '20 at 14:48
  • @MickaelB. I appreciate the answer, but I already saw that article. Do you have any idea why the Chrome Extension would work, but the Fat Client would not? – tscrip Jan 10 '20 at 21:32
  • The server is on localhost ? Have you a session cookie set on postman ? – Mickael B. Jan 10 '20 at 21:50
  • Server is local. I am using an HTTP Header to authenticate. – tscrip Jan 13 '20 at 21:32

0 Answers0