-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"在浏览器中打开" 无法使用 webDav, 报错: CORS 错误 #19
Comments
如果先在思源客户端中登录webDav,然后打开浏览器访问keeWeb, 在保存kdbx时也会报上面的错 |
这是 webdav 服务提供者 CORS 策略的问题,在浏览器中不太容易绕过 |
@Zuoqiu-Yingyi 下面这个文章说的是需要webdav服务提供者去设置的吗? |
看了一下, 确实是这样的 |
@Zuoqiu-Yingyi 这样行不 |
可以实现, 欢迎 PR |
@Zuoqiu-Yingyi 看了keeWeb的代码, 看不懂, 它是啥架构的? |
就是个用 vanilla js 实现的单页面 web 应用 |
@Zuoqiu-Yingyi 搜嘎 |
有不少 WebDAV 服务的跨域策略比较宽松, 这种可以正常使用 |
@Zuoqiu-Yingyi 这个问题要是解决的话,其它很多插件也能受益, |
内核有一个 API |
@Zuoqiu-Yingyi 我去,已经有了! nice! 我测试一下 |
@Zuoqiu-Yingyi 用了forwardProxy ,插件可以跨域访问webDAV了! |
这我就不太清楚了, 因为我也没相关的经验 |
访问 http://127.0.0.1:58309/plugins/keepass/keeweb/app/?v=0.2.0
More>webDav 输入登录信息后, 报错: access to fetch at 'xxx' from origin 'http://127.0.0.1:58309' has been blocked by CORS policy
如下图
The text was updated successfully, but these errors were encountered: