rails json api is returning 406 http error when used from an outside page (backbone and phonegap) <p>I've build a rails 3 application. This application has a json API. I've developed a html+javascript Backbone UI (Jquery ajax) that calls the API. Everything works fine.</p> <p>Now, I wan't to use this html+js in Phone Gap. When I test the application using chrome, with no security (chromium-browser --allow-file-access-from-files --disable-web-security) I get an 406 error from the API.</p> <p>I've performed some tests, and the problem is solved when I add ".json" to the url, however, this is not easy to manage inside backbone.</p> <p>Any one has experienced the same error?</p> <p>UPDATE solution found at: <a href="http://stackoverflow.com/questions/9241045/backbone-client-with-a-remote-rails-server">BackBone client with a remote Rails Server</a></p>