arguman / arguman.org

Argument mapping and analysis platform
https://arguman.org
Other
1.39k stars 152 forks source link

Add locate subdomains cross origin #313

Closed om3rcitak closed 5 years ago

om3rcitak commented 8 years ago

https://gist.github.com/barrabinfc/426829

mdisec commented 8 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.

mdisec commented 8 years ago

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.