From 27a11043f17bf8687fd58f624cb43a7861d77e1a Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sat, 24 May 2025 17:04:18 +0330 Subject: [PATCH] changing in allowed host --- Rasaddam_Backend/settings.py | 39 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/Rasaddam_Backend/settings.py b/Rasaddam_Backend/settings.py index b819d2e..484a296 100644 --- a/Rasaddam_Backend/settings.py +++ b/Rasaddam_Backend/settings.py @@ -33,6 +33,7 @@ ALLOWED_HOSTS = [ 'https://rasadyar.net/', 'https://localhost:9200', 'https://api.rasadyaar.net', + 'https://api.dam.rasadyaar.net', 'http://localhost:3000', 'http://192.168.88.130:3000', '*' @@ -281,25 +282,25 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 50242880 CORS_ORIGIN_ALLOW_ALL = True -CORS_ORIGIN_WHITELIST = ( - # 'http://localhost:8080', - # 'http://127.0.0.1:8080', - # 'http://127.0.0.1:3000', - # 'http://localhost:3000', - # 'http://192.168.88.130:3000', - # 'https://rasadyar.net' - '*' -) - -CORS_ALLOWED_ORIGINS = ( - # 'http://localhost:8080', - # 'http://127.0.0.1:8080', - # 'http://127.0.0.1:3000', - # 'http://localhost:3000', - # 'http://192.168.88.130:3000', - # 'https://rasadyar.net' - '*' -) +# CORS_ORIGIN_WHITELIST = ( +# # 'http://localhost:8080', +# # 'http://127.0.0.1:8080', +# # 'http://127.0.0.1:3000', +# # 'http://localhost:3000', +# # 'http://192.168.88.130:3000', +# # 'https://rasadyar.net' +# '*', +# ) +# +# CORS_ALLOWED_ORIGINS = ( +# # 'http://localhost:8080', +# # 'http://127.0.0.1:8080', +# # 'http://127.0.0.1:3000', +# # 'http://localhost:3000', +# # 'http://192.168.88.130:3000', +# # 'https://rasadyar.net' +# '*', +# ) SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') SECURE_SSL_REDIRECT = False