Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
cors-backdoor
Advanced tools
A simple proxy server built using express to bypass cors restrictions during development
A CORS-friendly local proxy to access cross origin resources
A temporary workaround for common CORS errors like:
Access to fetch at 'http://api.example.com/posts' from origin 'http://localhost:8082' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'http://api.example.com/posts' from origin 'http://localhost:8082' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
Install as a global module (recommended)
npm install -g cors-backdoor
Install as a dev dependency
npm install -D cors-backdoor
cors-backdoor --target http://api.example.com
This will start a local proxy running on the port 1234
for the target http://api.example.com
. The client will have to
be reconfigured to make requests which looked like http://api.example.com/posts
to http://localhost:1234/posts
instead
CLI API, Advanced configuration and more on the docs page https://drishtilabs.github.io/cors-backdoor
FAQs
A simple proxy server built using express to bypass cors restrictions during development
The npm package cors-backdoor receives a total of 688 weekly downloads. As such, cors-backdoor popularity was classified as not popular.
We found that cors-backdoor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.