CORSmirror is a RESTful API that provides a proxy to URLs with CORS enabled.
Built with:
RESTful API:
https://corsmirror.com/v1?url=<url>
Replace
<url>
with your URL.
To cURL https://httpbin.org/headers
:
curl -o - -I 'https://corsmirror.com/v1?url=https://httpbin.org/headers' -H "accept: application/json" -H "Authorization: Bearer"
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
Clone the repository:
git clone https://github.com/corsmirror/corsmirror-cf.git
cd corsmirror-cf
Install the dependencies:
npm install
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
Feel free to fork the repository. Contributions are welcome!