I have my server backend that is called from a client X(clickable link) with HTTP GET REQUEST this client send me values as RequestHeader, my need is to get these values (headers) and send it to My frontend (ANGULAR) and the most important thing is to get those values and continue my workflow.
the image below explain my workflow
this is my java code(spring controller)
private static final String NG_REDIRECT_URL= "http://localhost:4200";
@GetMapping(value = "/server-core")
public RedirectView requestHandler(HttpServletRequest request, HttpServletResponse response,
@RequestHeader(value = "user_id", required = true) String userId,
@RequestHeader(value = "login", required = true) String login) throws IOException {
return new RedirectView(NG_REDIRECT_URL, true);
}
