added the cross origin stuff #84

Closed
Maxime wants to merge 1 commits from Max/backend/crossOrigin into master

View File

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