|
@ -18,7 +18,8 @@ exports.mime = mime |
|
|
function proxyRequest (route) { |
|
|
function proxyRequest (route) { |
|
|
const httpProxy = require('http-proxy') |
|
|
const httpProxy = require('http-proxy') |
|
|
const proxy = httpProxy.createProxyServer({ |
|
|
const proxy = httpProxy.createProxyServer({ |
|
|
changeOrigin: true |
|
|
|
|
|
|
|
|
changeOrigin: true, |
|
|
|
|
|
secure: false |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
return function proxyMiddleware () { |
|
|
return function proxyMiddleware () { |
|
|