corsmirror / corsmirror-cf

☁️ Proxy to URLs with CORS enabled.

Home Page:https://b.remarkabl.org/corsmirror-site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORSmirror

CORSmirror is a RESTful API that provides a proxy to URLs with CORS enabled.

Built with:

Usage

RESTful API:

https://corsmirror.com/v1?url=<url>

Replace <url> with your URL.

So to fetch http://example.com:

fetch('https://corsmirror.com/v1?url=http://example.com')
  .then((response) => response.text())
  .then((data) => console.log(data));

Try it out: https://corsmirror.com/v1?url=http://example.com

Development

Installation

Clone the repository:

git clone https://github.com/CORSmirror/corsmirror-cf.git
cd corsmirror-cf

Install the dependencies:

npm install

Run

Start the development server:

npm start

Open http://127.0.0.1:8788 to view it in the browser:

open http://127.0.0.1:8788

Contributions

This is an open source project so feel free to fork the repository. Contributions are welcome!

Support

License

MIT

About

☁️ Proxy to URLs with CORS enabled.

https://b.remarkabl.org/corsmirror-site

License:MIT License


Languages

Language:TypeScript 72.2%Language:HTML 9.9%Language:Gherkin 9.5%Language:Shell 8.4%