diff --git a/api/.env.cicd b/api/.env.cicd index c275d85..bd19ab7 100644 --- a/api/.env.cicd +++ b/api/.env.cicd @@ -1,4 +1,5 @@ FRONTEND_URL=http://localhost:5173 BACKEND_URL=http://127.0.0.1:5173 +BACKEND_HOST=127.0.0.1:5173 DEBUG=True SECRET_KEY=django-insecure-^=xy+akjdagtjisch+_5fku9!1aw)hhf_&feny8r3@6ds%rds \ No newline at end of file diff --git a/api/masteriq/settings.py b/api/masteriq/settings.py index f75db77..373231b 100644 --- a/api/masteriq/settings.py +++ b/api/masteriq/settings.py @@ -29,7 +29,9 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv('DEBUG') -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = [ + os.getenv('BACKEND_HOST') +] CORS_ALLOWED_ORIGINS = [ os.getenv('FRONTEND_URL'),