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
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
- In chrome Network tab, right click on the api request
- Choose Copy -> Copy as Curl
- Now go to Postman, click Import tab across the top
- In dialog presented choose "Paste Raw Text" and paste in the curl
- You should see a new endpoint created in Postman and you can run it
Comments
Post a Comment