This project provides a simple CORS-bypassing proxy using Cloudflare Pages Functions.
You can use it to:
- ✅ Fetch the full HTML content of any public web page (
mode=full
) - ✅ Extract all structured
<meta>
tags from a page’s<head>
(mode=meta
)
🌐 Cloudflare Proxy Endpoint (example) https://allallow.pages.dev/?url=https://example.com&mode=meta
/ link
/cloudflare-pages-proxy-ui
├── functions/
│ └── index.js # Cloudflare Functions API (meta + full)
├── wrangler.toml # Cloudflare Pages config
├── README.md
└── index.html # Test demo (requests to allallow.pages.dev)
GET https://<your-cloudflare-project>.pages.dev?url=https://example.com&mode=meta
Response:
{
"meta": {
"og": {
"title": "...",
"image": "..."
},
"description": "..."
},
"status": 200
}
GET https://<your-cloudflare-project>.pages.dev?url=https://example.com
or
GET https://<your-cloudflare-project>.pages.dev?url=https://example.com&mode=full
Response:
{
"content": "<!doctype html>....</html>",
"status": 200
}
- Push to GitHub
- Go to Cloudflare Pages
- Create a new project from your repo
- Set:
- Build command = (blank)
- Build output directory = (
public
default)
It will serve:
/?url=...
→ the proxy function
All responses include:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Headers: Content-Type
MIT – free to use, modify, and share.