The first step of oAuth is to redirect the user to the oAuth service.
It seems that you are trying to fetch the oAuth entry point instead of directing the user to the oAuth entry point.
You might also find it easier if your backend is whats serving the frontend as that will reduce issues caused from two ports/two urls to things