Closed mattmcginnis closed 8 years ago
I tried adding an "api" scope to my routes in rails and setting the API_PREFIX_PATH to /api/ but that did not work. I also tried adding /api/ to the end of the API_URL and unsetting the API_PREFIX_PATH but that did not work either.
I have API_URL set to: https://myapp.herokuapp.com/ which is a rails backend. API_PREFIX_PATH is not set.
I successfully deploy the ember-cli app, but when it tries to call the backend, I get a 405.
Here is the log from the ember-cli heroku app.
2015-11-02T19:31:11.910151+00:00 heroku[router]: at=info method=POST path="/users" host=www.mydomain.com request_id=6d1121ba-f19a-4fd7-a533-ca6c990680ae fwd="104.156.228.106" dyno=web.1 connect=3ms service=2ms status=405 bytes=713
The rails backend logs show no activity. This is obviously because the proxy is not being used. Any ideas?