I have 2 separate application, Front end is angular 4 based application running on port 4200 and backend is based on node express and MongoDB, which is running on different port 3000. I have implemented the user authentication using passport package in the node and express for various social networks like facebook, google, and twitter.
Now, the problem is, if I call my backend authentication API from the browser directly, it's working fine, ( showing social network site login page and calling callback after login).
But When I call it from angular 4 code, It complains about redirection and CORS.
I am seeking some help, in fixing this problem.
** I cannot send the code to you. We have to solve it on my computer through TeamViewer or any other screen sharing tools.