Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@curveball/cors
Advanced tools
This package is a middleware for the Curveball framework.
npm install @curveball/cors
After installing the NPM package, simply import the CORS middleware to an existing Curveball server:
import cors from '@curveball/cors';
import { Application } from '@curveball/core';
const app = new Application();
app.use(cors());
When manually providing CORS options, this is how it should look:
app.use(cors({
allowOrigin: '*',
allowHeaders: ['Content-Type', 'Accept'],
allowMethods: ['GET', 'POST'],
exposeHeaders: ['Link', 'Date'],
credentials: true
}));
If no options are given, it will use these defaults:
{
allowOrigin: '*',
allowHeaders: ['Content-Type', 'User-Agent', 'Authorization', 'Accept', 'Prefer', 'Prefer-Push', 'Link'],
allowMethods: ['DELETE', 'GET', 'PATCH', 'POST', 'PUT'],
exposeHeaders: ['Location', 'Link'],
credentials: false
}
FAQs
CORS middleware for curveball
The npm package @curveball/cors receives a total of 338 weekly downloads. As such, @curveball/cors popularity was classified as not popular.
We found that @curveball/cors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.