@azteam/express 1.2.365 → 1.2.366

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/lib/Server.js CHANGED
@@ -320,7 +320,7 @@ var Server = /*#__PURE__*/function () {
320
320
  case 0:
321
321
  return _context3.abrupt("return", res.success(_objectSpread(_objectSpread({}, req.trackDevice), {}, {
322
322
  host: req.hostname,
323
- origin: req.get('origin')
323
+ origin: req.rootOrigin
324
324
  })));
325
325
  case 1:
326
326
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.365",
3
+ "version": "1.2.366",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
package/src/Server.js CHANGED
@@ -300,7 +300,7 @@ class Server {
300
300
  return res.success({
301
301
  ...req.trackDevice,
302
302
  host: req.hostname,
303
- origin: req.get('origin'),
303
+ origin: req.rootOrigin,
304
304
  });
305
305
  });
306
306