Когда я отправляю cookies с фронт-энда (nextjs-reactjs), на бэк-энд (django-rest-framework) я получаю пустой словарь с request.COOKIES
in the nextjs getServerSideProps i send request to api with this code : const groups = await api.getGroups()
and the getGroups is : const getGroups = async ()=>{ const { data } = await api.get("http://localhost:8000/group", {withCredentials: true}) return data }
В back-end я печатаю request.COOKIES, но он возвращает пустой словарь
Я использую аутентификацию JWT в dj-rest-auth