Using django with postman {“detail”:“CSRF Failed: CSRF token missing or incorrect.”}

前端 未结 7 2066
谎友^
谎友^ 2021-02-20 17:08

I\'m using postman to check json response from my django-rest-framework.

When my first try to post id, email, password through POST method to my django on AWS(amazon web

7条回答
  •  旧时难觅i
    2021-02-20 17:11

    For me the solution was to add the X-CSRFToken header in Postman (gotten from initial login response in browser)

    see https://stackoverflow.com/a/26639895/8133649

提交回复
热议问题