sinatra-cors icon indicating copy to clipboard operation
sinatra-cors copied to clipboard

CORS support for Sinatra applications

Results 2 sinatra-cors issues
Sort by recently updated
recently updated
newest added

we have a POST only route so when a preflight request is made, `allowed_methods` is just `["POST"]` and the size check causes the request to 404: https://github.com/jdesrosiers/sinatra-cors/blob/6e1cbe1afa616c33c0b3268cd3f0e8733c78598e/lib/sinatra/cors.rb#L134 why is a...

It would be nice to enable CORS only for specific Endpoints. `app.get 'a/url/endpoint' do enable_cors {... options ...} end `