fix: Update csrf settings
This commit is contained in:
parent
30a7f5cd3e
commit
60be2f9139
@ -5,11 +5,13 @@ from .base import *
|
|||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ")
|
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ")
|
||||||
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ")
|
|
||||||
|
|
||||||
CORS_ALLOW_CREDENTIALS = True
|
CORS_ALLOW_CREDENTIALS = True
|
||||||
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ")
|
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ")
|
||||||
|
|
||||||
|
CSRF_COOKIE_DOMAIN = os.environ.get("CSRF_COOKIE_DOMAIN")
|
||||||
|
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ")
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user