cors-now:具有CORS标头的反向代理

时间:2021-05-28 00:38:45
【文件属性】:
文件名称:cors-now:具有CORS标头的反向代理
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-28 00:38:45
cors reverse-proxies JavaScript 现在 具有CORS标头的反向代理。 用法: 只需对以下内容进行fetch : https://cors.now.sh/ 例子: // The XKCD URL below doesn't allow CORS. fetch ( 'https://cors.now.sh/http://xkcd.com/info.0.json' ) . then ( console . log ) . catch ( console . error ) PS:确保提供了绝对URL,否则您将看到类似以下的错误: { "error" : "Only absolute urls are supported" } 为什么? 对于反向代理。 对于爬虫,蜘蛛,什么都不是! 执照 麻省理工学院:copyright:
【文件预览】:
cors-now-master
----.gitignore(14B)
----.snyk(440B)
----package.json(761B)
----.travis.yml(65B)
----index.js(3KB)
----license(1KB)
----readme.md(564B)
----.gitattributes(29B)
----.editorconfig(190B)

网友评论