From 5beded02c5eb56bb65d75cc1e940d62be600776d Mon Sep 17 00:00:00 2001 From: Kirosbr Date: Tue, 13 Feb 2024 16:00:35 +0100 Subject: [PATCH] ajout du orange pi IP --- Reskreen/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Reskreen/settings.py b/Reskreen/settings.py index c02896c..80fcf24 100644 --- a/Reskreen/settings.py +++ b/Reskreen/settings.py @@ -31,6 +31,7 @@ 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'] @@ -136,6 +137,10 @@ MIDDLEWARE = [ CORS_ALLOWED_ORIGINS = [ "http://33.144.144.6:5173", # Ajoutez ici l'URL de votre application frontend , ] +if cfg_dev_mode: + CORS_ALLOWED_ORIGINS.append("https://33.144.144.13:5173") + + MIDDLEWARE += ('apilog.middleware.APILogMiddleware',)