feat(server): add extra CORS origins url configuration

This commit is contained in:
MingxuanGame
2025-08-12 05:33:24 +00:00
parent e0a386934e
commit 6474a3d11e
4 changed files with 5 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ class Settings(BaseSettings):
port: int = 8000
debug: bool = False
private_api_secret: str = "your_private_api_secret_here"
cors_urls: list[HttpUrl] = []
server_url: HttpUrl = HttpUrl("http://localhost:8000")
# SignalR 设置