I will be grateful for your help :)
I have a frontend on port 4200 and backend on 8080, and after authentication i redirect it from 8080 to 8080 (another endpoint) to save a new user and after that, I need to redirect to localhost:4200...
HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.setLocation(Paths.get(url + "/home").toUri());
return ResponseEntity.ok()
.headers(responseHeaders)
.body(cookie);
But I only get a response There was an unexpected error (type=Internal Server Error, status=500).
Illegal char <:> at index 4: http://localhost:4200/home