전체 글 (122) 썸네일형 리스트형 [Spring Boot] Security6 세션 정보 및 CORS 설정 (6) https://docs.spring.io/spring-security/reference/servlet/integrations/cors.html CORS :: Spring SecuritySpring Framework provides first class support for CORS. CORS must be processed before Spring Security, because the pre-flight request does not contain any cookies (that is, the JSESSIONID). If the request does not contain any cookies and Spring Security isdocs.spring.io 세션 정보 확인@GetMapping("/t.. [Spring Boot] Security6 JWT 검증 필터 (5) package com.example.loans_domain.auth.jwt;import com.example.loans_domain.auth.entity.CustomUserDetails;import com.example.loans_domain.auth.entity.UserEntity;import com.example.loans_domain.auth.entity.constant.Role;import jakarta.servlet.FilterChain;import jakarta.servlet.ServletException;import jakarta.servlet.http.HttpServletRequest;import jakarta.servlet.http.HttpServletResponse;import lomb.. [Spring Boot] Security6 로그인 성공 JWT 발급 (4) LoginFilterpackage com.example.loans_domain.auth.jwt;import com.example.loans_domain.auth.entity.CustomUserDetails;import jakarta.servlet.FilterChain;import jakarta.servlet.http.HttpServletRequest;import jakarta.servlet.http.HttpServletResponse;import lombok.RequiredArgsConstructor;import org.springframework.security.authentication.AuthenticationManager;import org.springframework.security.authen.. 이전 1 ··· 18 19 20 21 22 23 24 ··· 41 다음