diff --git a/.env.example b/.env.example index 93fe4c9..80721c4 100644 --- a/.env.example +++ b/.env.example @@ -35,4 +35,4 @@ PLUGINS_DIR=plugins # ==================== CORS配置 ==================== # 允许的来源域名,用逗号分隔 -CORS_ORIGINS=http://localhost:8080,http://localhost:5173 +CORS_ORIGINS=http://localhost:8080,http://localhost:5173,http://localhost:9948 diff --git a/core/config.py b/core/config.py index 855f4fa..7d67ba7 100644 --- a/core/config.py +++ b/core/config.py @@ -44,7 +44,7 @@ class Settings(BaseSettings): plugins_dir: str = "plugins" # CORS 配置 - cors_origins: str = "http://localhost:8080,http://localhost:5173" + cors_origins: str = "http://localhost:8080,http://localhost:5173,http://localhost:9948" @property def cors_origins_list(self) -> List[str]: