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

restify-cors-middleware

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restify-cors-middleware - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

.travis.yml

4

package.json
{
"name": "restify-cors-middleware",
"version": "0.0.4",
"version": "0.0.5",
"author": "Tabcorp Digital Technology Team",

@@ -22,3 +22,3 @@ "license": "MIT",

"peerDependencies": {
"restify": "2.6.x - 2.8.x"
"restify": "2.6.x - 3.0.x"
},

@@ -25,0 +25,0 @@ "devDependencies": {

@@ -11,3 +11,3 @@ # restify-cors-middleware

var cors = corsMiddleware({
preflightMaxAge: 5 //Optional
preflightMaxAge: 5, //Optional
origins: ['http://api.myapp.com', 'http://web.myapp.com'],

@@ -14,0 +14,0 @@ allowHeaders: ['API-Token'],

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