cyu / rack-cors

Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
MIT License
3.27k stars 263 forks source link

Does not work with Rack 3.0.0 #242

Closed LarryNorth closed 2 years ago

LarryNorth commented 2 years ago

This error occurs when using Rack 3.0.0: Rack::Lint::LintError: uppercase character in header name: Access-Control-Allow-Origin

It does not occur with Rack 2.2.4. Apparently Rack 3.0.0 enforces the Rack Spec rule prohibiting uppercase letters in headers.

I encountered this problem when running Minimal Rack::Cors + Roda app.

cyu commented 2 years ago

Thanks! Fixed here: a48a558