Skip to content

Instantly share code, notes, and snippets.

@woncode
woncode / cloudflare-worker-proxy.js
Created March 19, 2023 09:48 — forked from cnych/cloudflare-worker-proxy.js
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.