fix CORSMiddleware

This commit is contained in:
jxxghp
2023-06-19 12:41:17 +08:00
parent 7248ce3105
commit 8b4a44c8d4
2 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,8 @@ class Settings(BaseSettings):
API_V1_STR: str = "/api/v1"
# 密钥
SECRET_KEY: str = secrets.token_urlsafe(32)
# 允许的域名
ALLOWED_HOSTS: list = ["*"]
# TOKEN过期时间
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8
# 时区