cors

by expressjs · Web

Node.js CORS middleware

New0 ratings6,194 starsActive
WebDeveloper ToolJavaScriptcors
↓ Download v2.8.6GitHub⚑ Report
cors — image 1

About this project

cors CORS is a Node.js middleware for Express/Connect that sets CORS response headers. These headers tell browsers which origins can read responses from your server. [!IMPORTANT] How CORS Works: This package sets response headers—it doesn't block requests. CORS is enforced by browsers: they check the headers and decide if JavaScript can read the response. Non-browser clients (curl, Postman, other servers) ignore CORS entirely. See the MDN CORS guide for details. Installation Usage Simple Usage Enable CORS for a Single Route Configuring CORS Configuring CORS w/ Dynamic Origin Enabling CORS Pre-Flight Customizing CORS Settings Dynamically per Request Configuration…

Technologies

JavaScriptexpressjscors

Project health

Low recent activity
Last update3 months ago
Contributors54
Latest releasev2.8.6
Open issues & PRs51
LicenseMIT
On GitHubsince 2013

GitHub

6,194
stars
511
forks
54
contributors
51
open issues & PRs
JavaScript
language
3 months ago
last commit
View on GitHub ↗All releases ↗

Reviews

out of 5 · 0 ratings
★★★★★
0%
★★★★
0%
★★★
0%
★★
0%
0%
Sign in to write a review
No reviews yet
Be the first to review cors.

Built by

expressjs
Imported from GitHub · not yet claimed on GitPalace
View developer pageSign in with GitHub to claim

Maintain expressjs/cors? Claiming verifies admin access through your GitHub account and gives you control of this listing.

You might also like