Angular 2 Authentication Rails 5

Getting Started with Angular/Rails Authentication

About the author

Jason Swett


Click here to post a comment

  • How does angular localhost:4200/auth is redirected to localhost:3000/auth. If you could explain the integration part then it would be useful.

    • You have to set up proxy

      So whenever you send a request on localhost:4200/api it’s redirects to localhost:3000/
      So if you send POST localhost:4200/api/sessions it’s actually will be processed by sessions controller (if you have route of course) because request redirects to localhost:3000/sessions