From b3279780e85c1ad2569a0c6bc33364cb2459dd13 Mon Sep 17 00:00:00 2001 From: Kirosbr Date: Thu, 27 Jun 2024 07:46:19 +0200 Subject: [PATCH] migration des ALLOWED_HOSTS et CORS dans le server_config --- Reskreen/settings.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Reskreen/settings.py b/Reskreen/settings.py index 6204aa9..ace5792 100644 --- a/Reskreen/settings.py +++ b/Reskreen/settings.py @@ -27,14 +27,6 @@ BASE_DIR = Path(__file__).resolve().parent.parent DEBUG = cfg_dev_mode -ALLOWED_HOSTS = ["rh.ambulance-clerc.ch"] -if cfg_dev_mode: - ALLOWED_HOSTS.append("127.0.0.1") - ALLOWED_HOSTS.append("33.144.144.6") - ALLOWED_HOSTS.append("33.144.144.13") -CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch'] - - # Application definition LOGIN_REDIRECT_URL = '/admin' INSTALLED_APPS = [ @@ -137,15 +129,7 @@ MIDDLEWARE = [ CRON_CLASSES = [ "mycaldav.cron.InitTaskSync", -] - -CORS_ALLOWED_ORIGINS = [ - "http://33.144.144.13:4173", - "http://33.144.144.13:5173", - "http://33.144.144.13:3000", -] - - +] MIDDLEWARE += ('apilog.middleware.APILogMiddleware',)