【文件属性】:
文件名称:workers:Cloudflare工人
文件大小:9KB
文件格式:ZIP
更新时间:2021-04-28 00:51:34
cors proxy workers cloudflare-workers JavaScript
English |
Cloudflare工人
2020-12-11 Cloudflare禁止zme.ink
:red_heart: 科尔斯
支持跨域请求将HTTP转换为HTTPS
界面
Host/{URL}
https://cors.eu.org/{URL}
演示版
// Copy to the console and run
var $url = "http://wthrcdn.etouch.cn/weather_mini?citykey=101040100" ;
fetch ( "https://cors.eu.org/" + $url ) . then ( x => x . text ( ) ) . then ( console . log )
安装
克隆项目并进入子目录(代表一个工作人员)
编辑index.js和wrangler.toml (配置密钥)
wrangler config配置
【文件预览】:
workers-main
----.gitignore(5KB)
----LICENSE(1KB)
----README.md(1KB)
----cors()
--------package.json(340B)
--------index.js(6KB)
--------wrangler.toml(167B)
--------.prettierrc(105B)
----README_zh-CN.md(2KB)