+
Skip to content

Ya Corps stands for "Yet Another CORS Proxy Server", which it ultimately is. (It's really simple by the way)

License

Notifications You must be signed in to change notification settings

An0n-00/ya-corps

ya-corps

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!

We would really appreciate your support by starring the project! You are keeping us afloat ❤️🚢🔱

🚀 Features

  • 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

📦 Installation

Automated:

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') }"

Manual:

  1. Clone the repository:
git clone https://github.com/An0n-00/ya-corps.git
cd ya-corps
  1. Install dependencies:
npm install
  1. Create a .env file based on .env.example:
cp .env.example .env
  1. Start the server:
npm run main

The server will start on http://localhost:3000 (or the port specified in your .env file).

🛠️ Usage

Proxy Endpoint

POST /request

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 URL
  • method: optional — HTTP method, defaults to GET
  • headers: optional — object of headers
  • body: optional — any data, for POST/PUT/PATCH

GET /request

Send all info via query parameters:

/request?url=https://targetsite.com/api&method=POST&headers={"Authorization":"Bearer%20token"}&body={"foo":"bar"}
  • url: required — destination URL
  • method: optional — HTTP method, defaults to GET
  • headers: optional — JSON-stringified headers (URL-encoded)
  • body: optional — string or JSON-stringified body (URL-encoded)

📈 Charts

Commit Activity

Feel free to provide feedback or contribute to the project!

Star History Chart

We would really appreciate your support by starring the project! You are keeping us afloat ❤️

About

Ya Corps stands for "Yet Another CORS Proxy Server", which it ultimately is. (It's really simple by the way)

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载