Spaces:
Sleeping
Sleeping
Update src/config.py
Browse files- src/config.py +2 -2
src/config.py
CHANGED
|
@@ -11,8 +11,8 @@ class Settings(BaseSettings):
|
|
| 11 |
JWT_SECRET_KEY: str = "your-jwt-secret-change-in-production"
|
| 12 |
JWT_ALGORITHM: str = "HS256"
|
| 13 |
ACCESS_TOKEN_EXPIRE_DAYS: int = 7
|
| 14 |
-
JWT_COOKIE_SECURE: bool =
|
| 15 |
-
JWT_COOKIE_SAMESITE: str = "
|
| 16 |
|
| 17 |
# CORS
|
| 18 |
FRONTEND_URL: str = "http://localhost:3000"
|
|
|
|
| 11 |
JWT_SECRET_KEY: str = "your-jwt-secret-change-in-production"
|
| 12 |
JWT_ALGORITHM: str = "HS256"
|
| 13 |
ACCESS_TOKEN_EXPIRE_DAYS: int = 7
|
| 14 |
+
JWT_COOKIE_SECURE: bool = True # Set to True in production
|
| 15 |
+
JWT_COOKIE_SAMESITE: str = "none" # "lax" | "strict" | "none" (use "none" for cross-site cookies in production)
|
| 16 |
|
| 17 |
# CORS
|
| 18 |
FRONTEND_URL: str = "http://localhost:3000"
|