Skip to content

Commit

Permalink
Add wrangler config
Browse files Browse the repository at this point in the history
  • Loading branch information
dlackty committed Apr 17, 2023
1 parent af9eb6b commit 45823a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = "cloudflare-cors-anywhere"
main = "index.js"
compatibility_date = "2023-04-17"

0 comments on commit 45823a2

Please sign in to comment.