How do I redirect my front-end (Angular) application based on the result from another server

I have URL ex. abc.com/myapp, when hit on this URL it will go to another domain do the login process, after the success full login this results will come to my server context path ‘myapp’ through headers. Based on the header result my back-end will identify the user and return some Json to the abc.com/myapp front end. How to receive this Json to the base path ‘myapp’

Source: New feed
Source Url How do I redirect my front-end (Angular) application based on the result from another server