Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created October 25, 2020 19:00
Show Gist options
  • Save jmrobles/a27a80c1ccc91f64c18a7f0fe72df95e to your computer and use it in GitHub Desktop.
Save jmrobles/a27a80c1ccc91f64c18a7f0fe72df95e to your computer and use it in GitHub Desktop.
const PROXY_CONFIG = {
"/api": {
"target": "http://my-backend.com",
"changeOrigin": true,
"secure": false,
"logLevel": "debug",
"onProxyReq": function(pr, req, res) {
pr.removeHeader('Origin');
}
}
};
module.exports = PROXY_CONFIG;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment