AlejandroAkbal / Cloudflare-Worker-Cors-Proxy

Cloudflare worker to create a Cors Proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Worker Cors Proxy

This is a modified version of a worker that I found on the Cloudflare worker template gallery.

You can compare my version against the original.

This worker support GET, POST, HEAD, and OPTIONS

Features

  • Improved code readability
  • Improved functionality (Changed 'IFs' to 'Switch', removed unnecessary code, etc.)
  • Removed unnecessary HTML response

Installing

Copy and paste the content from worker.js to your Cloudflare Worker code, thats it.

Usage

Fetch directly to your worker with the 'q' query followed by the url you want to proxy

https://corsproxy.example.workers.dev/?q=https://example.com/image.png

About

Cloudflare worker to create a Cors Proxy

License:MIT License


Languages

Language:JavaScript 100.0%