diff --git a/configs/env.production.yaml b/configs/env.production.yaml index b0d53b2..6f2d6c5 100644 --- a/configs/env.production.yaml +++ b/configs/env.production.yaml @@ -13,6 +13,15 @@ app: server: mode: release +# =========================================== +# 🔒 CORS配置 - 生产环境 +# =========================================== +development: + enable_cors: true + cors_allowed_origins: "https://consoletest.tianyuanapi.com,https://console.tianyuanapi.com" + cors_allowed_methods: "GET,POST,PUT,PATCH,DELETE,OPTIONS" + cors_allowed_headers: "Origin,Content-Type,Accept,Authorization,X-Requested-With,Access-Id" + # =========================================== # 🗄️ 数据库配置 # ===========================================