From 806dfbf29307d2dceede040a757be0357ad1751c Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 26 Oct 2015 10:07:17 -0400 Subject: [PATCH] Use proper CSRF_COOKIE_DOMAIN. --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 31e8dfb..f5ff895 100644 --- a/settings.py +++ b/settings.py @@ -32,7 +32,7 @@ ALLOWED_HOSTS = ['*'] AUTH_PROFILE_MODULE = 'accounts.UserProfile' AUTHENTICATION_BACKENDS = ('utils.backends.EmailOrUsernameModelBackend',) BASE_PATH = os.path.dirname(__file__) -CSRF_COOKIE_DOMAIN = '.snipt.net' if 'USE_SSL' in os.environ else False +CSRF_COOKIE_DOMAIN = 'snipt.net' if 'USE_SSL' in os.environ else False CSRF_COOKIE_SECURE = True if 'USE_SSL' in os.environ else False DEBUG = True if 'DEBUG' in os.environ else False DEFAULT_FROM_EMAIL = 'support@snipt.net'