Created
October 20, 2017 04:58
-
-
Save campezzi/d3b71794bbd2c2fda41056f370b50b7f to your computer and use it in GitHub Desktop.
CORS Bypass Proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const proxy = require('express-http-proxy'); | |
const cors = require('cors'); | |
const app = express(); | |
app.use(cors()); | |
app.use('/', proxy('http://target-server.com')); | |
app.listen(3005); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment