cyu / rack-cors

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

Confusing documentation #213

Closed DanielStevenLewis closed 3 years ago

DanielStevenLewis commented 3 years ago

I don't understand the README note that "If you're running Rails, updating in config/application.rb should be enough. There is no need to update config.ru as well."

Nothing in the README has instructions to update application.rb

cyu commented 3 years ago

Fixed in this commit, thanks for the report! [47af8a87d9ea896cbf6f13a803f1d29c0ef9ab57]