New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-xcors

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-xcors - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

connect-cors.js

@@ -267,2 +267,3 @@ (function () {

if ('undefined' === typeof origin) {
//console.log('origin mismatch');
return next();

@@ -273,5 +274,8 @@ }

if (!resources.some(resourceHandler)) {
//console.log('resource mismatch');
return next();
}
//console.log('CORS HEADERS SET');
// 5.2

@@ -286,2 +290,3 @@ // pre-flighted requests don't need a body, just headers

corsHandler.config = config;
return corsHandler;

@@ -288,0 +293,0 @@ };

2

package.json

@@ -8,3 +8,3 @@ {

"description": "CORS / XHR2 support for Node.JS's Connect",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/antono/connect-cors",

@@ -11,0 +11,0 @@ "repository": {

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