Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
raw
 
 
 
 
 
 
 
 

README.md

English | 简体中文

Cloudflare Workers

cors

Support cross-domain request
Convert HTTP to HTTPS

Interface

  • Host/{URL}
  • https://cors.zme.ink/{URL}

Demo

// Copy to the console and run
var $url = "http://wthrcdn.etouch.cn/weather_mini?citykey=101040100";
fetch("https://cors.zme.ink/" + $url).then(x => x.text()).then(console.log)

raw

Browse the contents of the GitHub repository directly, replacing raw.githubusercontent.com
Handle Content-Type output by svg, js, css

Interface

  • Host/{name}/{repos}/{branch}/{path}
  • Replace githubusercontent.com with zme.ink

Demo


Install

  • clone the project and enter the subdirectory (representing a worker)
  • 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/

Source


Notice

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

overflow

If you don’t want to trouble, maybe you can sponsor I upgrade to a paid user $5/month 10 million requests, please note from cfw

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.