allowed csrf token origins

This commit is contained in:
Parsa Nazer
2025-01-26 03:20:27 +03:30
parent 7ffd128e2d
commit acb2ce84df
+6 -6
View File
@@ -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