Hydra-Bolt commited on
Commit
2e512c9
·
1 Parent(s): 92daf66
Files changed (2) hide show
  1. .env.example +1 -1
  2. app/config/settings.py +1 -1
.env.example CHANGED
@@ -7,7 +7,7 @@ PORT=8000
7
  HOST="0.0.0.0"
8
 
9
  # Allowed CORS origins (comma-separated)
10
- ALLOWED_ORIGINS="http://localhost:3000,http://localhost:8000,http://localhost:5173"
11
 
12
  # JWT Configuration
13
  JWT_SECRET_KEY="your-super-secret-jwt-key-change-this-in-production"
 
7
  HOST="0.0.0.0"
8
 
9
  # Allowed CORS origins (comma-separated)
10
+ ALLOWED_ORIGINS="http://localhost,http://localhost:3000,https://sanad-check.vercel.app"
11
 
12
  # JWT Configuration
13
  JWT_SECRET_KEY="your-super-secret-jwt-key-change-this-in-production"
app/config/settings.py CHANGED
@@ -35,7 +35,7 @@ class Settings:
35
  DATABASE_URL: Optional[str] = os.getenv("DATABASE_URL")
36
 
37
  # CORS
38
- ALLOWED_ORIGINS: List[str] = os.getenv("ALLOWED_ORIGINS", "http://localhost:3000,http://localhost:8000,http://localhost:5173").split(",")
39
 
40
  # Logging
41
  LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO")
 
35
  DATABASE_URL: Optional[str] = os.getenv("DATABASE_URL")
36
 
37
  # CORS
38
+ ALLOWED_ORIGINS: List[str] = os.getenv("ALLOWED_ORIGINS", "http://localhost,http://localhost:3000,https://sanad-check.vercel.app").split(",")
39
 
40
  # Logging
41
  LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO")