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
Source:stackexchange.com