You probably have a CORS. problem,you need to enable CORS on the server.You cant execute an ajax request on a different domain unless the server explicitly allows it. As for the redirect if you work with Ajax you need to treat the server as an APi end point.It's your javascript that will handle any redirect logic,not the server. Basically you cant do what you want without some modifications on the server.
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
