Django api returns 403 {"detail": "CSRF Failed: CSRF cookie not set."}

the API, I wrote by calling django through PUT is good on postman, but when I call API through axios, I return 403.
response is {"detail": "CSRF Failed: CSRF cookie not set."},
in django, I have commented CSRF

clipboard.png

but it"s still useless, ask for God!

Mar.01,2021

axios does not have a cookie request by default. You need to set withCredentials: true

.
Menu