Browse Source

Use proper CSRF_COOKIE_DOMAIN.

master
Nick Sergeant 6 years ago
parent
commit
806dfbf293
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      settings.py

+ 1
- 1
settings.py View File

@@ -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'


Loading…
Cancel
Save