这是本文档旧的修订版!
Welcome!
About me
I'm doge24190,the host of this site,also the founder of collaborative writing website smalltown,a student,who like playing video game(I try to solve some technical problems cause I wan to enjoy game better )and have some small interests. sometimes you can meet me at wikipedia.
You can find me in these sites:
About this site
文章推荐
Miniflux 后台无法删除 API Key 的一次排查记录:Cloudflare Rocket Loader 与 CSP 冲突
最近在自建 Miniflux 时遇到一个比较隐蔽的问题:API Key 本身已经可以正常使用,但在 Miniflux 后台页面中点击 API Key 后面的“移除”按钮时,始终无法删除。
这个问题一开始看起来像是 Miniflux 的 API、反向代理、Cookie、BASE_URL 或权限问题,但最后发现真正原因是:
- Cloudflare 开启了 Rocket Loader;
- Rocket Loader 向 Miniflux 页面注入了脚本;
- Miniflux 的 Content Security Policy 阻止了该脚本;
- 页面 JavaScript 行为异常,导致删除按钮无法正常发起请求。
DokuWiki 配置 URL 重写后媒体文件、Logo 和缩略图无法显示的排查记录
最近我在给自己的 DokuWiki 配置 URL 重写,也就是让原本类似:
/doku.php?id=start
这样的地址变成更简洁的:
/start
配置过程中,页面本身很快就能正常访问了,但随后遇到了一个比较隐蔽的问题:上传的媒体文件、网站 Logo 和部分缩略图无法正常显示。
这篇文章记录一下完整排查过程和最终解决方案。
评论