Possibly a redirect defined in your authcontroller that may be taking precedence?
Ajax requests that have and auth middleware
Hi, Just need some help, I have a problem getting the appropriate flow of authentication I want. So right now I have the basic auth that comes with laravel 5.1. In my homepage I have a button that sends and ajax call to an URL, this URL requires authentication. I the user is already logged in there is no problem. But when he is not, the ajax call gets redirected to the login page and then when successfully logged in redirects to a page with my ajax json response echoed. “{ result: ‘Ok’}” What I am expecting is for the page to redirect back to the page from where the Ajax call came from, but can’t seem to make it happen. Thanks in Advance
Please or to participate in this conversation.