Header Proxy Service

A simple service that copies headers from incoming requests and forwards them to a specified URL.

How to Use

Make requests to the /proxy endpoint with a url query parameter:

GET /proxy?url=https://example.com

Examples

Basic GET Request

curl -X GET "https://your-project.pages.dev/proxy?url=https://example.com"

POST Request with Custom Headers

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-token" \
  -d '{"key": "value"}' \
  "https://your-project.pages.dev/proxy?url=https://api.example.com/data"

With Additional Query Parameters

curl "https://your-project.pages.dev/proxy?url=https://api.example.com/search&q=test&page=1"

View the GitHub repository for more details.