You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
853
-26.08%
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:

  • full support for industry-standard options (matches express.js)
  • far more control of matching/reflecting origins
  • true wildcard support
  • fixes a nasty race condition that could appear under heavy multi-user load
  • 20% smaller (we somehow shed over 100 bytes)
  • 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

fetch

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