1、填入代码

var csrf_token = postman.getResponseCookie("csrftoken").value
postman.clearGlobalVariable("csrftoken");
postman.setGlobalVariable("csrftoken", csrf_token);

Postman post csrf_token

 

2、查看全局变量

Postman post csrf_token

 

3、请求中设置“X-CSRFToken”这个header

 Postman post csrf_token

 

相关文章:

  • 2021-08-24
  • 2021-05-16
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2021-12-08
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-03-26
  • 2022-01-13
相关资源
相似解决方案