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',)