Browse Source

merge in master

master
Lloyd Brookes 9 years ago
parent
commit
88e441dba4
  1. 3
      lib/middleware.js
  2. 2
      package.json

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

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "local-web-server", "name": "local-web-server",
"version": "1.2.4",
"version": "1.2.6",
"description": "A simple web-server for productive front-end development", "description": "A simple web-server for productive front-end development",
"bin": { "bin": {
"ws": "./bin/cli.js" "ws": "./bin/cli.js"

Loading…
Cancel
Save