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

Endpoint specific CORS settings

Open pplant opened this issue 7 years ago • 1 comments

It would be nice to enable CORS only for specific Endpoints.

app.get 'a/url/endpoint' do enable_cors {... options ...} end

pplant avatar Apr 24 '18 14:04 pplant

Sorry, for the slow response. I'll try to look into this over the weekend.

jdesrosiers avatar Apr 27 '18 05:04 jdesrosiers