How to fetch and reuse the CSRF token using Postman Rest Client

前端 未结 2 1553
醉话见心
醉话见心 2021-02-06 15:21

I am using Postman Rest client for hitting the rest services. I am getting the following error when I try to execute the rest service from Postman client.

HTTP S         


        
2条回答
  •  无人共我
    2021-02-06 16:13

    1) In Chrome/Firefox, open the console by right clicking anywhere and chose "inspect"(for Chrome) or "inspect element"(for Firefox).

    2) Select "network" tab. 3) 4)

    Do a get request or login first while you see the request made , to get CSRF-TOKEN sent from the server.

    5) In the next post request, use the CSRF-TOKEN from the previous request.

提交回复
热议问题