 <p>The problem might be related to CORS (Cross Origin Resource Sharing)</p> <p>Thy to enable in your application --> <a href="http://sourcey.com/building-the-prefect-rails-5-api-only-app/#enabling-cors" rel="nofollow">Enabling cors Rails5</a></p> <p>Good luck</p>