ajout du orange pi IP
This commit is contained in:
@@ -31,6 +31,7 @@ ALLOWED_HOSTS = ["rh.ambulance-clerc.ch"]
|
|||||||
if cfg_dev_mode:
|
if cfg_dev_mode:
|
||||||
ALLOWED_HOSTS.append("127.0.0.1")
|
ALLOWED_HOSTS.append("127.0.0.1")
|
||||||
ALLOWED_HOSTS.append("33.144.144.6")
|
ALLOWED_HOSTS.append("33.144.144.6")
|
||||||
|
ALLOWED_HOSTS.append("33.144.144.13")
|
||||||
CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
|
CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
|
||||||
|
|
||||||
|
|
||||||
@@ -136,6 +137,10 @@ MIDDLEWARE = [
|
|||||||
CORS_ALLOWED_ORIGINS = [
|
CORS_ALLOWED_ORIGINS = [
|
||||||
"http://33.144.144.6:5173", # Ajoutez ici l'URL de votre application frontend ,
|
"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',)
|
MIDDLEWARE += ('apilog.middleware.APILogMiddleware',)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user