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.
- Host: GitHub
- URL: https://github.com/kumojin/bye-bye-cors
- Owner: kumojin
- License: mit
- Created: 2020-10-26T19:17:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-03-05T19:17:02.000Z (3 months ago)
- Last Synced: 2026-03-05T22:35:23.749Z (3 months ago)
- Topics: cors, cors-proxy, hacktoberfest, hacktoberfest-accepted, hacktoberfest2021, proxy
- Language: JavaScript
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`