yakuza0 2.23.12 → 2.23.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.12",
3
+ "version": "2.23.13",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -130,6 +130,7 @@ exports.default = function () {
130
130
  if (local) {
131
131
  app.use(function (ctx, next) {
132
132
  return (0, _mid2.default)('/' + key, (0, _extends3.default)({}, defProxyOpt, {
133
+ changeOrigin: true,
133
134
  target: _config2.default.server.orbProtocol.http + '//' + _config2.default.server.orbHost + ':' + _config2.default.server.orbPort + '/' + _config2.default.proxyServer.apiKey + '/' + _config2.default.name,
134
135
  rewrite: function rewrite(path, ctx) {
135
136
  var rsf = path.replace('/' + key + '/', '');
@@ -284,6 +285,7 @@ exports.default = function () {
284
285
  // })
285
286
  // }
286
287
  }
288
+
287
289
  if (!_config2.default.security.isStupid && proxyReq.host) {
288
290
  proxyReq.setHeader('host', proxyReq.host);
289
291
  }