[Vuejs]-Django Rest Framework – Why am I getting a CSRF cookie not set on only one URL when there is NO difference from the other forms

0πŸ‘

βœ…

first of all – you need to call method as_view in your path.

secondly. As I know CreateAPIView do not using get_queryset method at all, so you can remove it.

In your frontend framework when you send request to backend – do you add something like withCredentials = true;. idk I am not frontender.

But cookie is only browser feature, so make sure that cookie is setted

Leave a comment