V
V
vovashaplin2020-06-11 23:28:30
Django
vovashaplin, 2020-06-11 23:28:30

CSRF token error?

Forbidden (403)
CSRF verification failed. Request aborted.

On React I accept by post django api
but gives an error

const response = axios.post("http://localhost:8000/account/register", { email, password, username })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-06-11
@bacon

ie to read docks any more not destiny? https://docs.djangoproject.com/en/3.0/ref/csrf/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question