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
Typecho升级到1.2.0后所有文章不能回复 #1414
Comments
https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Referrer-Policy 把你服务器的 Referrer Policy 设置 same-origin 即可 你直接改成
这样只会给同域名的网页发 Referrer 第三方网页不会发 Referrer |
Hello my name is JiaYU,I do not often Login Email.If you have something important,Go to my blog to give me a message.JiaYu Blog:http://jiayu.mybabya.com/
|
谢谢您的回复,您的方法可以解决这个问题,但我也想了解源码中如何学习修改。 1、我尝试了修改了 /var/Widget/Security.php 中的 以下这一段,将getReferer()替换成了getRequestUrl(),这么做没有效果。
2、我尝试修改了 /var/Widget/FeedBack.php 文件中的以下这一段,但是这么做也没有效果。
然后将这个自定义函数 typecho_get_referer 的返回值替换掉以下代码的$referer参数由getReferer()获取的变量。
但是这么做会显示失误,前台不能进行登陆了。 |
修改 typecho/var/Widget/Feedback.php Lines 91 to 112 in cb4457a
|
问题所出网站:https://www.python.hn.cn/
问题描述: 因为某个视频网站的视频链接解析,需要设置 所以博客上所有文章均不能正常回复了。
<meta name="referrer" content="no-referrer">
1、点击提交按钮,没有任何反应,前台和后台均看不到该回复,在审核中也看不到该回复。
2、尝试过取消 “检查评论来源页 URL 是否与文章链接一致”和“开启反垃圾保护”两项选项,有效果。但这我将失去反垃圾保护。
3、删除 后一切正常。但是我却需要这一条。
请教大家,如何可以在不影响目前视频解析的情况下,修复或者解决这个问题呢?谢谢大家了。
官方反馈地址:https://forum.typecho.org/viewtopic.php?t=15595
The text was updated successfully, but these errors were encountered: