Open
Conversation
CodFrm
commented
Mar 22, 2026
Collaborator
|
UI 未支持 none 和 token ?? WebDAV AuthType 四种方式比较基本对比
各自适用场景
createClient(url, { authType: "password", username, password })
createClient(url, { authType: "digest", username, password })
createClient(url, { authType: "none" })
createClient(url, { authType: "token", token: accessToken })
安全性排序选择建议 |
Member
Author
|
看起来是的,都显示的账号/密码 |
Collaborator
修好了 ScriptCat旧代码真的乱糟糟。。。 |
cyfung1031
reviewed
Mar 22, 2026
| title: t("auth_type"), | ||
| type: "select", | ||
| options: ["password", "digest", "none", "token"], | ||
| minWidth: "140px", |
Collaborator
There was a problem hiding this comment.
ScriptCat的奇怪排版导致 要 140px
明明内容没有那么阔
不过算了。就这样吧
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
修复 #1297
WebDAV 同步/备份请求从 options.html 发起时,浏览器会自动携带目标域名的 cookies,导致与用户在浏览器中已登录的账户产生冲突(401 Unauthorized)。
通过 webdav 库提供的
getPatcher()API,patch fetch 调用强制设置credentials: "omit",确保 WebDAV 请求不携带任何浏览器 cookies,只通过 Authorization header(账号密码)进行认证。Test plan