added the cross origin stuff
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m10s
Build and test backend / Test-backend (pull_request) Successful in 2m2s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 26s

This commit is contained in:
Bartha Maxime 2024-03-09 17:50:29 +01:00
parent 5bda05925c
commit 5d6d2d4536

View File

@ -38,6 +38,7 @@ public class LoginController {
HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.set("Set-Cookie",String.format("session_token=%s",sessionToken));
responseHeaders.set("Access-Control-Allow-Credentials","true");
return ResponseEntity.ok().headers(responseHeaders).build();
}
}