REST API response problem


Hi, Im currently working on the solution for this chapter so here is my setup:

My ember service is located on a server which is run and accessed remotely from my computer. Everything has worked fine until now… Im trying to get a response from the heroku API which gives me the following error:

No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I´ve read something about my Ember server sending the Access-Control-Allow-Origin header but cant figure it out…

I´ve also enabled CORS on my chrome browser and when I do that, it works… any suggestions?

I think the main problem here is my Chrome browser requesting a response from my Ember server, which in turn sends a response from the heroku API…