Skip to content
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

gitalk评论会显示403的问题解决 #157

Open
PP7Z opened this issue Apr 19, 2022 · 2 comments
Open

gitalk评论会显示403的问题解决 #157

PP7Z opened this issue Apr 19, 2022 · 2 comments

Comments

@PP7Z
Copy link

PP7Z commented Apr 19, 2022

原因:

主题模版中的cors-anywhere反向代理已不支持直接使用,需要更换。

修改如下:

  1. theme/pure/_config文件中找到gitalk的配置,在末尾加入下面一行:proxy: 'https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token'

  2. 修改themes/pure/layout/_script/_comment/gitalk.ejs文件,在第15行下加入如下代码:proxy: '<%= theme.comment.gitalk.proxy %>',

文章参考:

@PP7Z PP7Z closed this as completed Apr 19, 2022
@PP7Z
Copy link
Author

PP7Z commented Apr 19, 2022

如上

@PP7Z PP7Z reopened this Apr 19, 2022
@liliangCS
Copy link

感谢分享

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants