Django cookies not working on Minikube at .local domain Django cookies not working on Minikube at .local domain kubernetes kubernetes

Django cookies not working on Minikube at .local domain


I checked all the settings of Django app and found out that the SESSION_COOKIE_SECURE option was the cause of the problem, as the doc says:

If this is set to True, the cookie will be marked as “secure”, which means browsers may ensure that the cookie is only sent under an HTTPS connection.

The app is configured to use this and some other settings for security reasons when running in prod mode, and my K8s configuration was not configured to run in debug mode.