cyu/rack-cors
Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible. observed · 2026-08-28
Health v2 · maintenance only
42/100
- Activity 21
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5936
- days_rel: n/a
- days_push: 474
- n_releases_24m: 0
Adoption not part of the score
3290 stars · 258 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Rack middleware that adds Cross-Origin Resource Sharing (CORS) support to Rack-compatible Ruby web applications, including Rails. It lets you declaratively configure allowed origins, headers, and HTTP methods so browsers can make cross-domain AJAX requests.
Use cases
- enable CORS for a Rails API
- allow cross-origin AJAX requests in a Rack app
- configure allowed origins and headers for browser requests
- replace JSONP workarounds with proper CORS headers
- restrict API access to specific domains
- handle preflight OPTIONS requests in Ruby web apps
When to choose
- you run a Rack-based app (Rails, Sinatra) that a browser frontend on another origin consumes
- you need fine-grained per-resource CORS rules with regex origins and exposed headers
- you want the standard, widely-used CORS solution in the Ruby ecosystem
When to avoid
- your server is not Rack-based (e.g., Node, Go, nginx-only setups)
- you need CORS handled at the proxy/CDN layer rather than in app middleware
- you only serve same-origin requests and need no cross-origin access
Facets
library · maturity active
middleware http-server security web-framework web-development backend apis security ruby cross-platform cors rack rails ruby-gem cross-origin web-server
1 source
- readme: https://github.com/cyu/rack-cors · fetched 2026-08-28 · 4caa45c187f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cyu/rack-cors | main | 42 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem