4👍
✅
Just remove the SESSION_COOKIE_DOMAIN
setting or set it to None
. Django will automatically use the current domain.
Source:stackexchange.com