Skip to content

Instantly share code, notes, and snippets.

@campezzi
Created October 20, 2017 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campezzi/d3b71794bbd2c2fda41056f370b50b7f to your computer and use it in GitHub Desktop.
Save campezzi/d3b71794bbd2c2fda41056f370b50b7f to your computer and use it in GitHub Desktop.
CORS Bypass Proxy
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