An open API service indexing awesome lists of open source software.

https://github.com/kumojin/bye-bye-cors

A proxy made with express.js that removes the need for CORS.
https://github.com/kumojin/bye-bye-cors

cors cors-proxy hacktoberfest hacktoberfest-accepted hacktoberfest2021 proxy

Last synced: 3 months ago
JSON representation

A proxy made with express.js that removes the need for CORS.

Awesome Lists containing this project

README

          

# You can now say bye bye to CORS errors!
**... for development purpose!**

We sometimes take on projects where we don't have control over the back-end and that can lead to CORS issues arising which is problematic when working on the front-end.

This is a simple proxy that we made whenever we get in this situation in order to be able to work without getting blocked by CORS errors.

## How to use
Simply update the `proxyTable` object in `index.js` and the proxy should work.
(You will probably have to add rules for each of the url if you plan on deploying to Kubernetes)

### Example of proxyTable

```
var proxyTable = {
"test.proxy.kumojin.com": "https://www.test.com",
"proxy.to.google": "https://www.google.com",
"test-store.proxy.kumojin.com": "https://demo-test-store-0430.myshopify.com",
};

```

## How to run

1. Install the dependencies: `npm install` or `yarn`

2. Run the proxy: `node index.js`