added the cross origin stuff #84
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user