diff --git a/server/app.py b/server/app.py index 6061356e..3377ea2f 100644 --- a/server/app.py +++ b/server/app.py @@ -31,9 +31,8 @@ def run_app(): mail = Mail(app) jwt = JWTManager(app) cors_config = { - r"*": { - "origins": ["https://mental-health-app-web.azurewebsites.net", "http://localhost:3000"], + "origins": [os.getenv("BASE_URL")], "methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], "allow_headers": [ "Authorization",