Xorb Proxy is a robust, secure, and flexible CORS (Cross-Origin Resource Sharing) proxy server that enables seamless API requests across different domains. Designed for developers who need to overcome cross-origin limitations, Xorb Proxy provides a simple, configurable solution for proxying HTTP requests.
- Universal CORS Bypass: Forward requests for any API endpoint
- Multi-Method Support: GET, POST, PUT, DELETE, OPTIONS
- Security First:
- Rate limiting
- URL validation
- Configurable origin restrictions
- Lightweight & Fast: Minimal overhead, built with Express.js
- Easy Integration: Simple query-based usage
- Error Handling: Comprehensive error responses
- Node.js (v14+ recommended)
- npm or yarn
# Clone the repository
git clone https://github.com/ogheneovo12/xorb-proxy.git
# Navigate to project directory
cd xorb-proxy
# Install dependencies
npm install
Configure your proxy using environment variables:
# .env file
PORT=5000
REQUEST_BODY_LIMIT=100kb
RATE_LIMIT_WINDOW=15 # minutes
RATE_LIMIT_MAX=100
fetch('https://xorb-proxy.xorbious.com/proxy?url=https://api.example.com/users', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
axios.get('https://xorb-proxy.xorbious.com/proxy', {
params: {
url: 'https://api.example.com/data',
extraParam: 'value'
}
})
.then(response => console.log(response.data))
.catch(error => console.error('Error:', error));
- Rate limited to prevent abuse
- URL validation
- Helmet.js for HTTP header security
# Development mode
npm run dev
# Production mode
npm start
- Maximum request body: 100KB
- Rate limit: 100 requests per 15 minutes
- HTTPS URLs recommended
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Oghene Ovo - @ogheneovo12
Project Link: https://github.com/ogheneovo12/xorb-proxy
*Made with ❤️ by Xorbious