0
You have: Client (React) --> [HTTP Request with CSRF Token] --> Django Backend /\ | +--- [Session Authentication & CSRF Validation] For SessionAut...
.interceptors
. That means that if you define an interceptor on the global Axios object (axios.interceptors
), it will not automatically apply to separate Axios instances created via axios.create()
unless those instances inherit or explicitly define their own interceptors. Set-Cookie
header contains the session id. Cookies.get('csrftoken')
) after the login request completes.