Spring Boot ์ต์ 3.XX ๋ฒ์ Security ์ค์ ๊ณต์ ๋๋ฆฝ๋๋ค.
boot 3.3.5 ๊ธฐ์ค @Configuration @EnableWebSecurity public class WebSecurity { private static final String[] WHITE_LIST = { "/users/**", "/**" }; @Bean public SecurityFilterChain config(HttpSecurity http) throws Exception { http .csrf(AbstractHttpConfigurer::disable) // CSRF ๋นํ์ฑํ .headers(headers -> headers .frameOptions(HeadersConfigurer.FrameOptionsConfig::disable) // X-Frame-Options ๋นํ์ฑํ ) .authorizeHttpRequests(authorize -> authorize .requestMatchers(WHITE_LIST).permitAll() // ํน์ ๊ฒฝ๋ก ํ์ฉ .anyRequest().authenticated()); // ๋๋จธ์ง ์์ฒญ์ ์ธ์ฆ ํ์ return http.build(); } }