@umijs/server 3.5.33 → 3.5.34

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.
@@ -318,11 +318,6 @@ class Server {
318
318
  onProxyReq(proxyReq, req, res) {
319
319
  var _proxyConfig$onProxyR;
320
320
 
321
- // 修改 host 模拟域名,避免 cors 只允许固定域名时报错
322
- if (proxyReq.getHeader('origin')) {
323
- proxyReq.setHeader('origin', target);
324
- }
325
-
326
321
  (_proxyConfig$onProxyR = proxyConfig.onProxyReq) === null || _proxyConfig$onProxyR === void 0 ? void 0 : _proxyConfig$onProxyR.call(proxyConfig, proxyReq, req, res);
327
322
  },
328
323
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/server",
3
- "version": "3.5.33",
3
+ "version": "3.5.34",
4
4
  "description": "@umijs/server",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@umijs/core": "3.5.33",
28
- "@umijs/deps": "3.5.33",
29
- "@umijs/utils": "3.5.33"
27
+ "@umijs/core": "3.5.34",
28
+ "@umijs/deps": "3.5.34",
29
+ "@umijs/utils": "3.5.34"
30
30
  }
31
31
  }