From 792d2c3dd499a7b73e89777c31eba47031b2a9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Fri, 19 Apr 2024 21:41:43 +0200 Subject: [PATCH] auth --- kholles_web/settings.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/kholles_web/settings.py b/kholles_web/settings.py index 483041b..2660868 100644 --- a/kholles_web/settings.py +++ b/kholles_web/settings.py @@ -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! 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