z1137254268 / workers

Cloudflare Workers

Home Page:https://cors.eu.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English | 简体中文

Note: Block a large number of requests, please deploy yourself


🧡 cors (Cloudflare Workers)

Support cross-domain request
Convert HTTP to HTTPS

Usage

// 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)

Install

  • clone the project and enter the cors directory
  • Edit index.js and wrangler.toml (configuration key)
  • wrangler config configure mailbox and key
  • wrangler build build
  • wrangler publish release
  • Detailed documentation: https://developers.cloudflare.com/workers/quickstart

Price

CPU Daily request Burst rate Script size
10ms 100,000 1000 requests in 10 minutes 1M after compression

Details: https://developers.cloudflare.com/workers/about/limits/

The amount can't hold up, please use your account to build the service if you use a lot, thank you! ! !
overflow


🧡 pages (Cloudflare Pages Functions )

Usage

Install

npm install wrangler@beta # install
npx wrangler pages dev --help # View help (nodejs version >= 16.x)
npx wrangler pages dev ./ # Enter the pages directory and run

Details: https://developers.cloudflare.com/pages/platform/functions

Limit

The total number of invocation requests per day is capped at 100,000. If the daily limit is reached, Pages will stop executing the function and fall back to providing only static resources.


Source

https://github.com/netnr/workers

About

Cloudflare Workers

https://cors.eu.org

License:MIT License


Languages

Language:JavaScript 100.0%