Skip to content

获取最新评论,返回无效请求? #415

Answered by jerryc127
jerryc127 asked this question in Q&A
Discussion options

You must be logged in to vote

考虑到安全性,API HTTP 请求需要传递 Origin 标头或 Referer 标头

文档说明:https://artalk.js.org/guide/backend/config.html#%E5%8F%AF%E4%BF%A1%E5%9F%9F%E5%90%8D-trusted-domains 相关代码:https://github.com/ArtalkJS/Artalk/blob/master/server/middleware/site_origin.go#L88

无语了 捣鼓了那么就还是不能显示
结果把浏览器的广告插件关了
可以显示了。。
无语

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jerryc127
Comment options

@jerryc127
Comment options

@jerryc127
Comment options

Answer selected by qwqcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants