Skip to content

Instantly share code, notes, and snippets.

@quidmonkey
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save quidmonkey/9136768 to your computer and use it in GitHub Desktop.

Select an option

Save quidmonkey/9136768 to your computer and use it in GitHub Desktop.
Node Proxy
// need to npm install http-proxy
require('http-proxy').createProxyServer({
port: 80, // if necessary
secure: false, // disable for self-signed certs
target: 'https://www.targetwebsite.com/'
}).listen(9000);
// boom baby, bye-bye development CORS issues!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment