From cc2e082d53d410e3b6114c9e5d69bf26fe3cc0e8 Mon Sep 17 00:00:00 2001 From: Shayan Azadi Date: Sat, 21 Feb 2026 12:31:40 +0330 Subject: [PATCH] fix: contact-us 405 - ALLOWED_HOSTS and CORS for production API --- zonco_backend/settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zonco_backend/settings.py b/zonco_backend/settings.py index 449ffaf..9ffae1a 100644 --- a/zonco_backend/settings.py +++ b/zonco_backend/settings.py @@ -25,7 +25,11 @@ SECRET_KEY = 'django-insecure-ro-sqgr@$*(qao)@d&ezk*z9&%+vbeurgi$b+6y650j*$1b+n5 # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = [ + 'localhost', + '127.0.0.1', + '185.208.172.158', +] # Application definition @@ -160,6 +164,8 @@ CORS_ALLOWED_ORIGINS = [ "http://localhost:3000", "http://127.0.0.1:5173", "http://127.0.0.1:3000", + "http://185.208.172.158:9123", + "http://185.208.172.158", ] CORS_ALLOW_CREDENTIALS = True