Postman post csrf_token

1、填入代码

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

2、查看全局变量

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

 

猜你喜欢

转载自www.cnblogs.com/wt7018/p/11451948.html