allowed csrf token origins
This commit is contained in:
@@ -35,12 +35,12 @@ DEBUG = False
|
|||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN]
|
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN]
|
||||||
# CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
# f"https://{DOMAIN}",
|
f"https://{DOMAIN}",
|
||||||
# f"http://{DOMAIN}",
|
f"http://{DOMAIN}",
|
||||||
# f"https://{API_DOMAIN}",
|
f"https://{API_DOMAIN}",
|
||||||
# f"http://{API_DOMAIN}",
|
f"http://{API_DOMAIN}",
|
||||||
# ]
|
]
|
||||||
# CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}",
|
# CORS_ALLOWED_ORIGINS = [f"https://{API_DOMAIN}", f"http://{API_DOMAIN}",
|
||||||
# f"http://{DOMAIN}", f"https://{DOMAIN}", ]
|
# f"http://{DOMAIN}", f"https://{DOMAIN}", ]
|
||||||
# import re
|
# import re
|
||||||
|
|||||||
Reference in New Issue
Block a user