proxy: permit insecure targets
This commit is contained in:
@ -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 () {
|
||||||
|
Reference in New Issue
Block a user