@azteam/express 1.2.320 → 1.2.321

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
@@ -142,12 +142,12 @@ var Server = /*#__PURE__*/function () {
142
142
  if (!IS_ALLOW_EMPTY) {
143
143
  error = new _error.ErrorException(_error.CORS, "Not allowed by CORS");
144
144
  }
145
- } else if (!WHITE_LIST.some(function (re) {
146
- return origin.endsWith(re);
147
- })) {
148
- error = new _error.ErrorException(_error.CORS, "".concat(origin, " Not allowed by CORS"));
149
145
  }
146
+ // else if (!WHITE_LIST.some((re) => origin.endsWith(re))) {
147
+ // error = new ErrorException(CORS, `${origin} Not allowed by CORS`);
148
+ // }
150
149
  }
150
+
151
151
  callback(error, {
152
152
  credentials: true,
153
153
  origin: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.320",
3
+ "version": "1.2.321",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./src/index.js",
6
6
  "scripts": {
package/src/Server.js CHANGED
@@ -125,9 +125,10 @@ class Server {
125
125
  if (!IS_ALLOW_EMPTY) {
126
126
  error = new ErrorException(CORS, `Not allowed by CORS`);
127
127
  }
128
- } else if (!WHITE_LIST.some((re) => origin.endsWith(re))) {
129
- error = new ErrorException(CORS, `${origin} Not allowed by CORS`);
130
128
  }
129
+ // else if (!WHITE_LIST.some((re) => origin.endsWith(re))) {
130
+ // error = new ErrorException(CORS, `${origin} Not allowed by CORS`);
131
+ // }
131
132
  }
132
133
  callback(error, {
133
134
  credentials: true,