Use Postman to execute protected endpoint

You want to call an api that is protected by access layer with token identity in cookie.
You can see the requests in Browsers network tab
But when hit api in Postman you get "unauthorized" error

You need the cookies.

The easiest way is
  1. In chrome Network tab, right click on the api request
  2. Choose Copy -> Copy as Curl

  1. Now go to Postman, click Import tab across the top
  2. In dialog presented choose "Paste Raw Text" and paste in the curl
  3. You should see a new endpoint created in Postman and you can run it

Comments

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more