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

Add an :if example to the README #177

Closed ndbroadbent closed 5 years ago

ndbroadbent commented 5 years ago

Based on https://github.com/cyu/rack-cors/issues/70#issuecomment-75392790

I wanted to figure out how to add a host constraint to a resource. I missed the :if option when skimming the README, so I had to search the issues. I think this would be a helpful tip