Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aomex/cors

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/cors - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

CHANGELOG.md
# @aomex/cors
## 1.0.2
## 1.0.1

@@ -4,0 +6,0 @@

6

dist/index.js

@@ -29,4 +29,3 @@ // src/index.ts

}
if (!origin)
return next();
if (!origin) return next();
let credentials;

@@ -39,4 +38,3 @@ if (typeof options.credentials === "function") {

if (request.method === "OPTIONS") {
if (!request.headers["access-control-request-method"])
return next();
if (!request.headers["access-control-request-method"]) return next();
response.setHeader("Access-Control-Allow-Origin", origin);

@@ -43,0 +41,0 @@ credentials && response.setHeader("Access-Control-Allow-Credentials", "true");

{
"name": "@aomex/cors",
"version": "1.0.1",
"version": "1.0.2",
"description": "跨站资源共享",

@@ -34,4 +34,4 @@ "repository": "git@github.com:aomex/aomex.git",

"@types/vary": "^1.1.3",
"@aomex/core": "^1.0.1",
"@aomex/web": "^1.0.1"
"@aomex/core": "^1.0.2",
"@aomex/web": "^1.0.2"
},

@@ -38,0 +38,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc