Closed om3rcitak closed 5 years ago
I believe we don't have to focus on cross-domain XHR request. We just need to set cookie with proper domain scope. Such as;
SESSION_COOKIE_DOMAIN = '.arguman.org'
If there is a different instance for each subdomain, all django instances have to use same (shared) secret key.
Cool! @fatiherikli . you'r too lazy to add 2 .dev domain into your hosts file, update your settings.py and test it in your local, aren't you ? haha.
https://gist.github.com/barrabinfc/426829