Skip to content

AlejandroAkbal/Cloudflare-Worker-Cors-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published