Preparing for system design interviews?  Try bugzed.com →

Restify CORS Middleware

JSON →
library 1.1.1 ·javascript
verified Jun 17, 2026

restify-cors-middleware is a library providing W3C-compliant Cross-Origin Resource Sharing (CORS) middleware specifically designed for Restify servers. The current stable version is 1.1.1. This library offers robust control over allowed origins, headers, and preflight requests. Key differentiators include its dynamic handling of `Access-Control-Allow-Origin` by returning the matched origin rather than a simple wildcard, which enhances security. It supports flexible origin specification using strings, wildcards, and regular expressions. The package maintains compatibility with a broad range of Restify versions (2.6.x - 7.x.x) through its peer dependency. While a specific release cadence isn't documented, historical releases show updates addressing security concerns, such as the upgrade to Restify 4.1.x to fix a `negotiator` module vulnerability in version 0.0.7. It is predominantly used in CommonJS environments.

total hits 23
actors 5 distinct systems
last hit 12d ago AhrefsBot
ByteDance
5
GPTBot
4
Amazonbot
4
Script
1
Humans
5

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · CL