一、问题 django 同一接口post请求失败,get请求成功,原因是django post接口有csrf校验 curl -H "Content-Type: application/json" -X POST -d '{"id":1}' http://200.200.169.135:4666/mock/getUser 二、解决办法 django关闭csrf校验,注释掉setting里面的'djang
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有