https://github.com/a-ng-d/cors-yelbolt-worker
This repository contains the Cors Yelbolt Worker, a service responsible for adding CORS to requests via a proxy for Yelbolt suite.
https://github.com/a-ng-d/cors-yelbolt-worker
cors cors-proxy worker
Last synced: 16 days ago
JSON representation
This repository contains the Cors Yelbolt Worker, a service responsible for adding CORS to requests via a proxy for Yelbolt suite.
- Host: GitHub
- URL: https://github.com/a-ng-d/cors-yelbolt-worker
- Owner: a-ng-d
- License: mit
- Created: 2025-12-10T18:49:10.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-02-26T16:31:32.000Z (3 months ago)
- Last Synced: 2026-02-26T22:43:43.214Z (3 months ago)
- Topics: cors, cors-proxy, worker
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CORS Yelbolt Worker
This repository contains the CORS Yelbolt Worker, a Cloudflare Worker that acts as a CORS proxy to bypass cross-origin restrictions when making API requests from the browser.
## Features
- **CORS Proxy**: Forward requests to any API and automatically add CORS headers
- **Simple Usage**: Just add the target URL as a query parameter
- **Supports All HTTP Methods**: GET, HEAD, POST, PUT, DELETE, PATCH, OPTIONS, CONNECT, TRACE
- **URL Encoding Support**: Handles both encoded and non-encoded URLs
- **Preflight Handling**: Automatically handles OPTIONS requests for CORS preflight
- **Header Forwarding**: Forwards request headers while filtering problematic ones
- **Error Handling**: Returns detailed error messages in JSON format
## Usage
Add the target URL as a query parameter to your worker URL:
```
https://your-worker.workers.dev/?https://api.example.com/endpoint
```
You can also use the `url=` parameter with encoded URLs:
```
https://your-worker.workers.dev/?url=https%3A%2F%2Fapi.example.com%2Fendpoint
```
Example:
```
https://your-worker.workers.dev/?https://api.lemonsqueezy.com/v1/licenses/activate?license_key=XXX&instance_name=YYY
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.