Add cors gem to be able to get and post JSON data onto rails server.