Skip to content

2021年2月起cors-anywhere停止了公开代理服务 #73

Open
@suxiaog

Description

@suxiaog

❓问题

🤔结果 & 预期

yilia-plus集成gitment,一切都配置妥当后,发布到github,实测gitment无法登录,一直在加载中...
查看控制台后出现2条错误:

  1. https://cors-anywhere.herokuapp.com/corsdemo 错误码403 forbidden
  2. https://api.github.com/users 错误码401
    经核实,是由于cors-anywhere服务器站点被限制的缘故,参加如下官方说明:
    https://github.com/Rob--W/cors-anywhere/issues/301

最后通过如下地址申请了访问corsdemo服务器的临时许可,到这里就可以正式使用了。
https://cors-anywhere.herokuapp.com/corsdemo
最终效果参见基于yilia-plus的博客https://suxiaog.github.io

期待思伟可以优化下!

🐥环境 & 设置

Node.js & npm version

Node -v:v14.15.4;npm -v:6.14.10

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

chrome v88.0.4324.150;360安全浏览器12

Your OSes (Optional)

Win10

🙋Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions