feat: add django user center auth integration

This commit is contained in:
刘金宝
2026-06-01 14:28:43 +08:00
parent b80e298b4f
commit 338e2c8e1d
12 changed files with 330 additions and 17 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ def create_app() -> FastAPI:
"http://127.0.0.1:5174",
"http://localhost:5174",
],
allow_origin_regex=r"^http://(127\.0\.0\.1|localhost):\d+$",
allow_credentials=False,
allow_origin_regex=r"^http://(127\.0\.0\.1|localhost|192\.168\.\d+\.\d+):\d+$",
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)