Browse Source

proxy: permit insecure targets

master
Lloyd Brookes 9 years ago
parent
commit
290629602e
  1. 3
      lib/middleware.js

3
lib/middleware.js

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

Loading…
Cancel
Save