Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

itty-cors

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-cors

Simple (and tiny) CORS-handling for any itty-router API. Designed on Cloudflare Workers, but works anywhere.

  • 0.3.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
427
decreased by-21.65%
Maintainers
1
Weekly downloads
 
Created
Source

itty-cors

Version Bundle Size Build Status Coverage Status NPM Weekly Downloads Open Issues

Discord GitHub Repo stars Twitter

Deprecation Notice

itty-cors has been fully deprecated in favor of itty-router/cors.

This complete rewrite brings the following:

  1. full support for industry-standard options (matches express.js)
  2. far more control of matching/reflecting origins
  3. true wildcard support
  4. fixes a nasty race condition that could appear under heavy multi-user load
  5. 20% smaller (we somehow shed over 100 bytes)
  6. 100% test coverage, like anything in itty-router core

itty-router v5.x CORS Guide

https://itty.dev/itty-router/cors

v5.x Migration Guide

https://itty.dev/itty-router/migrations/v4-v5

Keywords

FAQs

Package last updated on 01 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc