add https for the CORS setting
This commit is contained in:
@@ -28,6 +28,9 @@ DEBUG = os.getenv("DEBUG", "False").lower() in ("true", "1", "t")
|
|||||||
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",")
|
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",")
|
||||||
|
CSRF_TRUSTED_ORIGINS=[]
|
||||||
|
for ALLOWED_HOST in os.getenv("ALLOWED_HOSTS").split(","):
|
||||||
|
CSRF_TRUSTED_ORIGINS.append("https://"+str(ALLOWED_HOST))
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user