How to delete cookie with Django in Docker?
I'm working on my Django website, and I can't delete the JWT auth cookie upon logout. Here's my code for the logout view:
`@api_view(['GET']) def LogoutUser(request): response = Response("logging out", status=status.HTTP_200_OK) response.delete_cookie("jwt_token", path="/")
return response`
It's supposed to delete the jwt_token cookie, which is the JWT auth cookie with the JWT, but for some reason it only works in my development environment (runsever), but not when it's running inside a Docker container.
I tried setting a cookie with the same name but changing the expiry to 0, but that doesn't work.