This commit is contained in:
Valentin Moguérou 2024-04-19 21:41:43 +02:00
parent 70e6b42abb
commit 792d2c3dd4
1 changed files with 11 additions and 1 deletions

View File

@ -25,7 +25,17 @@ SECRET_KEY = 'django-insecure-$)@!wj+$^y1@^tr78ay&)cna10da_k^vncrbo+4ja-qth$8bhz
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ["127.0.0.1", "mp2i-vms.fr"] ALLOWED_HOSTS = ["127.0.0.1", "colles.mp2i-vms.fr"]
CSRF_TRUSTED_ORIGINS = [
"http://127.0.0.1:8000",
"https://colles.mp2i-vms.fr"
],
CORS_ORIGIN_WHITELIST = [
"http://localhost:8000",
"https://colles.mp2i-vms.fr"
]
# Application definition # Application definition