Rails server error not clear
|Added at||2017-01-02 20:01|
Using OS X Sierra
I have a rails app with two parts: front-end and back-end. On back-end I am using rails 4. On the front-end I am using Angular. Whenever I have to start the server locally (for development or test) I use 3 distinct console windows.
one to run
another to run
and the last to run
My local backend repository is just a clone of what is running on production.(minus server configuration)
When I use the fronted connected to my remote server it works without problems. However, when I run the backend locally and try to log in, all I get is the following log, and no responses:
The front end throws the following error:
My Angular endpoint file
I know that it should be a CORS problem, but as it works perfectly with two remote servers (production and test) I believe that my local configuration might be the problem.