Repository navigation
π CORS Proxy v1.0.0 - Initial Release
π CORS Proxy v1.0.0
A lightning-fast, simple CORS proxy server written in Go. Deploy anywhere with one click!
π Live Demo
Try it now: https://corsproxy-8uo5.onrender.com
β¨ What's New
This is the initial release of CORS Proxy with production-ready features:
Core Features
- β‘ Fast Go-based proxy - Maximum performance with minimal overhead
- π Full CORS support - Handles all CORS headers automatically
- π― Zero dependencies - Uses only Go standard library
- π³ Docker ready - Multi-stage builds for minimal image size (~10MB)
Configuration & Security
- π Rate limiting - Configurable per-IP rate limits
- π‘οΈ Host filtering - Allowlist/blocklist support
- βοΈ Environment-based config - Easy deployment configuration
- π Security limits - Request size (10MB) and timeout (30s) protection
Deployment
- π One-click deploy - Railway, Render, Fly.io, Koyeb support
- π¦ Docker Compose - Local development made easy
- π₯ Health checks - Built-in
/healthendpoint
Developer Experience
- π§ͺ Comprehensive tests - Automated test suite with 10 test cases
- π οΈ Makefile - Simple build, test, and deploy commands
- π Documentation - Complete README with examples
- π€ Contribution ready - Issue templates and guidelines
π₯ Installation
Quick Start
# Run with Docker
docker run -p 8080:8080 ghcr.io/melihbirim/corsproxy:latest
# Or with Go
go install github.com/melihbirim/corsproxy@latestFrom Source
git clone https://github.com/melihbirim/corsproxy.git
cd corsproxy
make build
./bin/cors-proxyπ Usage
# Basic usage
curl "http://localhost:8080/?url=https://api.github.com/users/octocat"
# With JavaScript
fetch('http://localhost:8080/?url=https://api.example.com/data')
.then(r => r.json())
.then(data => console.log(data));π§ Configuration
Configure via environment variables:
PORT- Server port (default: 8080)RATE_LIMIT_PER_MINUTE- Rate limit per IP (default: 0/disabled)ALLOWED_ORIGINS- Comma-separated CORS origins (default: *)MAX_REQUEST_SIZE- Max request size in bytes (default: 10MB)- See README for full list
π€ Contributing
We welcome contributions! Check out our good first issues to get started.
π What's Next
See our roadmap for planned features:
- Prometheus metrics endpoint
- Response caching
- API key authentication
- Circuit breaker pattern
- And more!
π Acknowledgments
Built with Go and β€οΈ by @melihbirim
Full Changelog: https://github.com/melihbirim/corsproxy/blob/main/CHANGELOG.md