Socket
Socket
Sign inDemoInstall

cors

Package Overview
Dependencies
1
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.8.0 to 2.8.1

2

package.json
{
"name": "cors",
"version": "2.8.0",
"version": "2.8.1",
"author": "Troy Goode <troygoode@gmail.com> (https://github.com/troygoode/)",

@@ -5,0 +5,0 @@ "description": "middleware for dynamically or statically enabling CORS in express/connect applications",

@@ -56,3 +56,3 @@ # `cors`

app.get('/products/:id', cors(), function(req, res, next){
res.json({msg: 'This is CORS-enabled for all origins!'});
res.json({msg: 'This is CORS-enabled for a Single Route'});
});

@@ -74,3 +74,3 @@

origin: 'http://example.com',
optionsSucccessCode: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
};

@@ -77,0 +77,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc