Skip to content

Commit

Permalink
feat: Cookie에 Domain 추가 (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitchannn authored Mar 11, 2024
1 parent bf50109 commit 5215065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ResponseEntity<Void> login(@RequestBody LoginRequest request, HttpServlet
// cookie.setSecure(true);
// response.addCookie(cookie);

response.setHeader("Set-Cookie", "sessionId=" + sessionId + "; HttpOnly; Max-Age=3600; Path=/; Secure; SameSite=None");
response.setHeader("Set-Cookie", "sessionId=" + sessionId + "; HttpOnly; Max-Age=3600; Path=/; Domain=sunnybraille.com; Secure; SameSite=None");

return ResponseEntity
.status(HttpStatus.OK.value())
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/security

0 comments on commit 5215065

Please sign in to comment.