How to make a POST simple JSON using Django REST Framework? CSRF token missing or incorrect

前端 未结 8 2096
清酒与你
清酒与你 2020-12-04 15:50

Would appreciate someone showing me how to make a simple POST request using JSON with Django REST framework. I do not see any examples of this in the tutorial anywhere?

8条回答
  •  [愿得一人]
    2020-12-04 16:14

    the old Postman is having a problem with csrf tokens because it does not working with cookies.

    I suggest for you to switch to the new version of postman, it works with cookies and you will not face this problem again.

提交回复
热议问题