Add wrangler config

This commit is contained in:
Richard Lee 2023-04-17 11:53:23 +08:00
parent af9eb6b534
commit 45823a2153
2 changed files with 12 additions and 3 deletions

View File

@ -15,10 +15,16 @@ https://paypal.me/Zibri/5
Post:
http://www.zibri.org/2019/07/your-own-cors-anywhere-proxy-on.html
Deploy workers:
https://workers.cloudflare.com/
## Deployment
This project is written in [Cloudfalre Workers](https://workers.cloudflare.com/), and can be easily deployed with [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/).
```bash
wrangler publish
```
## Usage Example
Example:
```javascript
fetch('https://test.cors.workers.dev/?https://httpbin.org/post', {
method: 'post',

3
wrangler.toml Normal file
View File

@ -0,0 +1,3 @@
name = "cloudflare-cors-anywhere"
main = "index.js"
compatibility_date = "2023-04-17"