Skip to content

Instantly share code, notes, and snippets.

View BradPerbs's full-sized avatar
🧠
Building a SaaS

BPx33 BradPerbs

🧠
Building a SaaS
View GitHub Profile
@rchrd2
rchrd2 / proxy.js
Created November 4, 2020 01:12
Cloudflare worker CORS proxy
// forked from: https://github.com/chebyrash/cors
addEventListener("fetch", event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
try {
const url = new URL(request.url);
if (url.pathname === "/") {
@jimmywarting
jimmywarting / readme.md
Last active December 15, 2025 13:53
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers