install
npm install express-http-proxy --save
使用
var proxy = require('express-http-proxy');
var app = require('express')();
app.use('/proxy', proxy('www.google.com'));
使用express-http-proxy解决跨域问题
npm install express-http-proxy --save
var proxy = require('express-http-proxy');
var app = require('express')();
app.use('/proxy', proxy('www.google.com'));