dsh-auth-cookie-guard

当一次响应里已经带上 4 条以上 dsh-auth-* Cookie 时,把更早启动绑定到其它端口的那些逐条过期;对已经撞上 HTTP 头长度上限的请求回一个顺带清掉它们的跳转,让卡住的桌面端无需手动清 Cookie 也能重新打开。是 jitianjiyan/dsh-auth-cookie-guard 的衍生版本(目录中已收录);两者声明同名 npm 包,不能同时安装。需要 DSH 0.2.1-rc.5 或更新版本。

插件介绍

当一次响应里已经带上 4 条以上 dsh-auth-* Cookie 时,把更早启动绑定到其它端口的那些逐条过期;对已经撞上 HTTP 头长度上限的请求回一个顺带清掉它们的跳转,让卡住的桌面端无需手动清 Cookie 也能重新打开。是 jitianjiyan/dsh-auth-cookie-guard 的衍生版本(目录中已收录);两者声明同名 npm 包,不能同时安装。需要 DSH 0.2.1-rc.5 或更新版本。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:Ethan1999991231/dsh-auth-cookie-guard

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。