Skip to content

Commit f2d56f2

Browse files
committed
fix(backend): allow https://sportiq-tennis.vercel.app in CORS
1 parent cbd309c commit f2d56f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/app/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class Settings(BaseSettings):
1616
"https://*.onrender.com",
1717
# Common Vercel preview and production domains (set exact domain via env for best security)
1818
"https://*.vercel.app",
19+
# Explicit project domain (ensure CORS works even if regex fails on some hosts)
20+
"https://sportiq-tennis.vercel.app",
1921
], alias="ALLOWED_ORIGINS")
2022

2123
# Pydantic v2 settings configuration

0 commit comments

Comments
 (0)