Add www versions to CORS origins and env config

This commit is contained in:
Your Name 2026-05-09 16:30:23 +05:30
parent ae3a335ea1
commit 9c7c400b23
2 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@ RESET_OTP_SECRET=
# ── Environment ───────────────────────────────────────────────────────────────
APP_ENV=production
CORS_ORIGINS=https://quantfortune.com,https://app.quantfortune.com
CORS_ORIGINS=https://quantfortune.com,https://www.quantfortune.com,https://app.quantfortune.com,https://www.app.quantfortune.com
# ── Database ──────────────────────────────────────────────────────────────────
DATABASE_URL=postgresql://user:password@localhost:5432/quantfortune

View File

@ -34,18 +34,20 @@ from market import router as market_router
from paper_mtm import router as paper_mtm_router
DEFAULT_PRODUCTION_ORIGINS = {
"https://app.quantfortune.com",
"https://quantfortune.com",
"https://www.quantfortune.com",
"https://app.quantfortune.com",
"https://www.app.quantfortune.com",
}
DEFAULT_DEV_ORIGINS = {
"http://localhost:3000",
"http://127.0.0.1:3000",
"http://localhost:5173",
"http://127.0.0.1:5173",
"https://app.quantfortune.com",
"https://quantfortune.com",
"https://www.quantfortune.com",
"https://app.quantfortune.com",
"https://www.app.quantfortune.com",
}
PRODUCTION_ENV_NAMES = {"prod", "production"}