Yet Another COR(S) Proxy Server
Hey Matey! Welcome to ya-corps, a simple CORS proxy server built with Node.js and Express. This project allows you to bypass CORS restrictions by proxying requests through a server, making it easier to access APIs and resources that have CORS policies in place.
To be blunt with you mate, I dislike long readme files, so I tried to keep it short and essential. Just click on a header you are interested in and dive right in!
- CORS Proxy: Bypass CORS restrictions by proxying requests through the server
- Multiple HTTP Methods: Support for GET, POST, PUT, DELETE, and other HTTP methods
- Header Forwarding: Forward custom headers with your requests
- Request Body Support: Send request bodies for POST/PUT operations
- Error Handling: Comprehensive error handling and reporting
- Simple API: Easy-to-use REST API interface. Like reallllyyy easy
This is a script to automate the installation. To check the powershell contents, look at this file. (It has comments everywhere. should be easy to understand)
iex "& { $(iwr -useb 'https://raw.githubusercontent.com/An0n-00/ya-corps/refs/heads/main/installer.ps1') }"
- Clone the repository:
git clone https://github.com/An0n-00/ya-corps.git
cd ya-corps
- Install dependencies:
npm install
- Create a
.env
file based on.env.example
:
cp .env.example .env
- Start the server:
npm run main
The server will start on http://localhost:3000
(or the port specified in your .env
file).
Send an HTTP request anywhere!
Body (application/json
):
{
"url": "https://targetsite.com/api",
"method": "POST",
"headers": { "Authorization": "Bearer token" },
"body": { "foo": "bar" }
}
url
: required — full destination URLmethod
: optional — HTTP method, defaults toGET
headers
: optional — object of headersbody
: optional — any data, for POST/PUT/PATCH
Send all info via query parameters:
/request?url=https://targetsite.com/api&method=POST&headers={"Authorization":"Bearer%20token"}&body={"foo":"bar"}
url
: required — destination URLmethod
: optional — HTTP method, defaults toGET
headers
: optional — JSON-stringified headers (URL-encoded)body
: optional — string or JSON-stringified body (URL-encoded)
Feel free to provide feedback or contribute to the project!
We would really appreciate your support by starring the project! You are keeping us afloat ❤️