15

I'm creating a rest api using rails and making calls from a remote ember app using ember data. I'm getting this routing error on what should be a GET request. How do I create an OPTIONS method and will I have to do this for every resource?

I can provide code snippets if needed.

kendotwill
  • 1,892
  • 18
  • 17

1 Answers1

23

Installing and configuring this gem should allow your Rails application to properly process the options request caused by CORS:

https://github.com/cyu/rack-cors

trosborn
  • 1,658
  • 16
  • 21