@cloud-cli/px 3.1.5 → 3.1.7

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.
Files changed (2) hide show
  1. package/dist/proxy.js +2 -0
  2. package/package.json +3 -5
package/dist/proxy.js CHANGED
@@ -169,4 +169,6 @@ function getHost(string) {
169
169
  function setCorsOriginHeader(req, res) {
170
170
  const corsOrigin = new URL(req.headers.origin);
171
171
  res.setHeader('Access-Control-Allow-Origin', corsOrigin.origin);
172
+ res.setHeader('Access-Control-Allow-Headers', '*');
173
+ res.setHeader('Access-Control-Allow-Methods', '*');
172
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/px",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "description": "Reverse Proxy",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -18,8 +18,7 @@
18
18
  "devDependencies": {
19
19
  "@cloud-cli/jest-config": "^1.0.0",
20
20
  "@cloud-cli/prettier-config": "^1.0.0",
21
- "@cloud-cli/typescript-config": "^1.0.1",
22
- "typescript": "^4.7.3"
21
+ "@cloud-cli/typescript-config": "^1.0.1"
23
22
  },
24
23
  "repository": {
25
24
  "type": "git",
@@ -30,7 +29,6 @@
30
29
  },
31
30
  "dependencies": {
32
31
  "@cloud-cli/cli": "^1.2.2",
33
- "@cloud-cli/store": "^1.1.0",
34
- "redbird": "^0.10.0"
32
+ "@cloud-cli/store": "^1.1.0"
35
33
  }
36
34
  }