proxy: permit insecure targets

This commit is contained in:
Lloyd Brookes
2016-06-09 16:49:48 +01:00
parent a9da450247
commit 290629602e

View File

@ -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 () {