Skip to content

Commit

Permalink
πŸ› CORS 였λ₯˜ μˆ˜μ •
Browse files Browse the repository at this point in the history
- μ„œλΉ„μŠ€ μ½”λ“œλ₯Ό μˆ˜μ •ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
  • Loading branch information
Ganghee-Lee-0522 committed Jan 12, 2024
1 parent 68e2855 commit af50da8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ public Member getAuthMember() {
// ν˜„μž¬ μ‚¬μš©μžμ˜ Authentication 객체 κ°€μ Έμ˜€κΈ°
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();

Long memberId = Long.valueOf(((CustomAuthenticationToken) authentication).getMemberId());
log.info("authentication 객체 λ§žμ•„? -> {}", String.valueOf(authentication.getPrincipal().getClass().equals(String.class)));



Long memberId = Long.valueOf(authentication.getPrincipal().toString());
Member member = validationService.valMember(memberId);
return member;
}
Expand Down

0 comments on commit af50da8

Please sign in to comment.