diff --git a/README.md b/README.md index c11b61fc..999677fc 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,14 @@ make build ### 步骤 2:配置重定向 URL -进入应用 → **安全设置**,在「重定向 URL」中输入 `http://127.0.0.1` 并保存。 +进入应用 → **安全设置**,在「重定向 URL」中添加以下地址并保存: + +``` +http://127.0.0.1 +https://login.dingtalk.com +``` + +> `http://127.0.0.1` 用于本地浏览器登录;`https://login.dingtalk.com` 用于 `--device` 设备流登录(Docker 容器、远程服务器等无浏览器环境)。建议两个都配置。
查看截图 diff --git a/README_en.md b/README_en.md index c6446b77..e90e4683 100644 --- a/README_en.md +++ b/README_en.md @@ -92,7 +92,14 @@ Go to the [Open Platform Console](https://open-dev.dingtalk.com/fe/app?hash=%23% ### Step 2: Configure Redirect URL -Go to app settings → **Security Settings**. Enter `http://127.0.0.1` as the redirect URL and save. +Go to app settings → **Security Settings**. Add the following redirect URLs and save: + +``` +http://127.0.0.1 +https://login.dingtalk.com +``` + +> `http://127.0.0.1` is for local browser login; `https://login.dingtalk.com` is for `--device` device-flow login (Docker containers, remote servers, and other headless environments). We recommend configuring both.
View screenshot