@aomex/cors
Advanced tools
Comparing version 0.0.2 to 0.0.3
# @aomex/cors | ||
## 0.0.3 | ||
### Patch Changes | ||
- [`d8debb9`](https://github.com/aomex/aomex/commit/d8debb9b6319d30e48cb77d97103b5559c57789c) Thanks [@geekact](https://github.com/geekact)! - refactor(web): response 的 header 均使用首字母大写的格式 | ||
- Updated dependencies [[`d8debb9`](https://github.com/aomex/aomex/commit/d8debb9b6319d30e48cb77d97103b5559c57789c), [`64c10e1`](https://github.com/aomex/aomex/commit/64c10e17ff92251bb2d9f45e0bddde5cba8a3b20), [`6a57463`](https://github.com/aomex/aomex/commit/6a57463c1107c38a8b8cf5fa00ff3289bf629c0a), [`8857115`](https://github.com/aomex/aomex/commit/88571153b7e84ec6d66d37970c3ef7b4e1924a03), [`68b1365`](https://github.com/aomex/aomex/commit/68b13655922a0714bcdd2101ce659da382d44e8b), [`b51a81a`](https://github.com/aomex/aomex/commit/b51a81a65313073dff5307b310b6656da2ad5186), [`ee021e3`](https://github.com/aomex/aomex/commit/ee021e342814f12777e538c06a19971e1020f201), [`b5aaec5`](https://github.com/aomex/aomex/commit/b5aaec540e3d732868a270a969a94ccd6ff9ac6a), [`fd6ae40`](https://github.com/aomex/aomex/commit/fd6ae40577bd9a62c211d4615483fc5dd58f5865)]: | ||
- @aomex/web@0.0.5 | ||
- @aomex/core@0.0.4 | ||
## 0.0.2 | ||
@@ -4,0 +14,0 @@ |
@@ -25,3 +25,3 @@ // src/index.ts | ||
const requestOrigin = request.headers["origin"]; | ||
response.vary("origin"); | ||
response.vary("Origin"); | ||
if (!requestOrigin) | ||
@@ -28,0 +28,0 @@ return next(); |
{ | ||
"name": "@aomex/cors", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "跨站资源共享", | ||
@@ -32,13 +32,10 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@aomex/core": "^0.0.3", | ||
"@aomex/web": "^0.0.4" | ||
"@aomex/core": "^0.0.4", | ||
"@aomex/web": "^0.0.5" | ||
}, | ||
"devDependencies": { | ||
"@aomex/core": "^0.0.3", | ||
"@aomex/web": "^0.0.4", | ||
"@types/supertest": "^2.0.12", | ||
"supertest": "^6.3.3", | ||
"vitest": "^0.28.5" | ||
"@aomex/core": "^0.0.4", | ||
"@aomex/web": "^0.0.5" | ||
}, | ||
"scripts": {} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18128
2