diff --git a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/LoginController.java b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/LoginController.java index 8a0722d..edf1aaa 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/LoginController.java +++ b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/LoginController.java @@ -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(); } }