From a5f92037eff71f09c33b819d2b919b02beb9e582 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sat, 24 May 2025 16:42:38 +0330 Subject: [PATCH] add * to cors --- Rasaddam_Backend/settings.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/Rasaddam_Backend/settings.py b/Rasaddam_Backend/settings.py index 7e8496e..2419e96 100644 --- a/Rasaddam_Backend/settings.py +++ b/Rasaddam_Backend/settings.py @@ -279,21 +279,23 @@ 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' + # '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' + # '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')