cors@2.8.6
// Node.js CORS middleware
$ npm install cors
downloads/wk
61,821,270
license
MIT
version
2.8.6
published
Jan 22, 2026
What is cors?
The cors package is Node.js middleware that enables Cross-Origin Resource Sharing (CORS) for Express and Connect applications, allowing your server to accept requests from web pages on different domains. Developers use it to configure which origins can access their API endpoints and what HTTP methods and headers are permitted in cross-origin requests.
Links
Keywords
Dependencies (2)
Maintainers
dougwilson, ulisesgascon, troygoode