2026-04-29-22-37-36 - 修复登录ERR_CONNECTION_REFUSED:前端baseURL改IP+后端CORS扩origin

This commit is contained in:
2026-04-29 22:41:10 +08:00
parent f41d9c20f5
commit 0f7b1ec31d
7 changed files with 166 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ class Settings(BaseSettings):
# App
app_env: str = "development"
cors_origins: list[str] = ["http://localhost:3000"]
cors_origins: list[str] = ["http://localhost:3000", "http://192.168.3.11:3000"]
class Config:
env_file = ".env"