ASP.NET Web API Authorization with Postman

前端 未结 3 1209
小鲜肉
小鲜肉 2021-02-04 14:26

I have created an ASP.NET Web API and applied Authorize attribute to the API controller. Now, I want to test it using Postman but I am getting Authorization error.

Contr

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-04 15:03

    In addition to the answer posted by Mathieu, I had to install interceptor extension for postman (https://www.getpostman.com/docs/interceptor_cookies, https://www.getpostman.com/docs/capture) to capture the cookies. After that it worked.

提交回复
热议问题