GitTalk 403 问题

GitTalk 403 Problem Solved

hexo icarus 的 blog comment 出现了问题,bing 过后发现是gitalk 的 cors proxy 出了问题导致直接访问会403

也查了一下 Zibri 的 cors worker 架设了一个,完美解决跨域时403的问题。

https://github.com/Zibri/cloudflare-cors-anywhere

steps:

1.Build your own worker in CloudFlare or AnywhereElse.

login and create your own worker.

随便命名

https://workers.cloudflare.com

step1

2.Copy And Paste script to your workers script from Zibri’ s repo.

https://github.com/Zibri/cloudflare-cors-anywhere

index.js

大概看懂这个脚本,用作补充headers的,然后用search的第一个字符串参数作为代理目标网站

可以直接postman GET测试一下:yourWorkerHost+.dev/?https://github.com/login/oauth/access_token

如果有正常返回那完全ok

save and deploy

保存

3.这样这个proxy就做好了,用在你该用的地方

4.记得在真正使用的地方测试是否成功

评论