change CSRF domain

This commit is contained in:
Argiris Deligiannidis 2023-08-10 13:00:04 +00:00
parent 2579d4fca7
commit 89fe2569f6
2 changed files with 13 additions and 13 deletions

View File

@ -77,24 +77,24 @@ MIDDLEWARE = [
#CORS_ALLOW_CREDENTIALS = True #CORS_ALLOW_CREDENTIALS = True
#CSRF_COOKIE_SECURE = True #CSRF_COOKIE_SECURE = True
CSRF_TRUSTED_ORIGINS = [ CSRF_TRUSTED_ORIGINS = [
"https://argideli.com", "https://spitiglykou.gr",
"https://dash.argideli.com", "https://dash.spitiglykou.gr",
"https://*.argideli.com/*", "https://*.spitiglykou.gr/*",
"https://*.argideli.com/*/*", "https://*.spitiglykou.gr/*/*",
"https://*.argideli.com/*/*/*", "https://*.spitiglykou.gr/*/*/*",
"https://*.argideli.com/*/*/*/*", "https://*.spitiglykou.gr/*/*/*/*",
"https://*.argideli.com/*/*/*/*/*", "https://*.spitiglykou.gr/*/*/*/*/*",
"https://*.argideli.com/*/*/*/*/*/*", "https://*.spitiglykou.gr/*/*/*/*/*/*",
"https://*.argideli.com/*/*/*/*/*/*", "https://*.spitiglykou.gr/*/*/*/*/*/*",
] ]
#CSRF_COOKIE_DOMAIN = [ #CSRF_COOKIE_DOMAIN = [
# 'https://argideli.com', # 'https://spitiglykou.gr',
# 'https://dash.argideli.com'] # 'https://dash.spitiglykou.gr']
#CSRF_COOKIE_NAME = "XSRF-TOKEN" #CSRF_COOKIE_NAME = "XSRF-TOKEN"
#CSRF_COOKIE_NAME = "csrftoken" #CSRF_COOKIE_NAME = "csrftoken"
#CSRF_COOKIE_PATH = ['https://argideli.com', 'https://dash.argideli.com'] #CSRF_COOKIE_PATH = ['https://spitiglykou.gr', 'https://dash.spitiglykou.gr']
#SESSION_COOKIE_DOMAIN = ['https://argideli.com', 'https://dash.argideli.com'] #SESSION_COOKIE_DOMAIN = ['https://spitiglykou.gr', 'https://dash.spitiglykou.gr']
ROOT_URLCONF = 'SpitiGlykou.urls' ROOT_URLCONF = 'SpitiGlykou.urls'