观察下,这个链接 cors-anywhere 似乎是用来解决跨域限制的,后面还跟了一个 GitHub 的 Access Token 获取地址,那没跑了,前面这个就是一个反向代理,后面是真实的请求 URL 接着搜,cors-anywhere,然后就搜到了这个:https://github.com/Rob--W/cors-anywhere 介绍如下: “CORS Anywhere is a NodeJS proxy
zhousiwei.gitee.io/yilia-plus-demo # 应用回调地址(请和配置的第三方应用保持一致) # 不能更改(网上开源项目https://github.com/Rob--W/cors-anywhere
经过一番分析研究,我们发现其中存在一个跨站资源共享CORS防护措施,所以,需要对它进行绕过,在此我们使用cors-anywhere代理方式对上述代码作了以下修改: ?
你既可以编写自己的平台,也可以使用诸如 https://www.npmjs.com/package/cors-anywhere 的成熟方案。
b.使用自己的代理工具 cors-anywhere 「服务端」 // Listen on a specific host via the HOST environment variable var host port via the PORT environment variable var port = process.env.PORT || 7777; var cors_proxy = require("cors-anywhere https://github.com/Rob--W/cors-anywhere/issues/208#issuecomment-575254153 c.charles 介绍 这是一个测试、开发的神器。
b.使用自己的代理工具 cors-anywhere 服务端 // Listen on a specific host via the HOST environment variable var host port via the PORT environment variable var port = process.env.PORT || 7777; var cors_proxy = require("cors-anywhere https://github.com/Rob--W/cors-anywhere/issues/208#issuecomment-575254153 c.charles 介绍 这是一个测试、开发的神器。
请和配置的第三方应用保持一致) # oauth_uri: https://zhousiwei.gitee.io/ # 不能更改(网上开源项目https://github.com/Rob--W/cors-anywhere
b.使用自己的代理工具 cors-anywhere 服务端 // Listen on a specific host via the HOST environment variable var host port via the PORT environment variable var port = process.env.PORT || 7777; var cors_proxy = require("cors-anywhere https://github.com/Rob--W/cors-anywhere/issues/208#issuecomment-575254153 c.charles 介绍 这是一个测试、开发的神器。
项目地址 (https://github.com/Rob--W/cors-anywhere) 在 百度 CSDN 中捡了一圈垃圾之后,还是没有最好的解决方案,然后通过某种方式Google了一下,找到两种替代的方式利用