From 005c8305bbd70133992ec0fe899ab6039ac9f02e Mon Sep 17 00:00:00 2001 From: Sarasaidin Date: Fri, 28 Aug 2026 13:37:11 +0800 Subject: [PATCH] Fix production API URL and CORS --- client/.env | 2 +- server/main.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/.env b/client/.env index 49ffa038..d8201e4d 100644 --- a/client/.env +++ b/client/.env @@ -1 +1 @@ -REACT_APP_API_URL=http://localhost:8000 +REACT_APP_API_URL=https://shp-backend.onrender.com diff --git a/server/main.py b/server/main.py index 6bccad29..f441e7d9 100644 --- a/server/main.py +++ b/server/main.py @@ -18,7 +18,8 @@ DEFAULT_ORIGINS = [ "http://localhost:3000", "http://localhost:8000", - "https://smart-health-predictive-test.onrender.com" + "https://smart-health-predictive-test.onrender.com", + "https://wellai.app" ] ENV_ORIGINS = [ origin.strip()