Skip to content

Commit

Permalink
refactor: corsConfig 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
xloyeon committed Dec 18, 2023
1 parent 0d5a98f commit c32d894
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public PasswordEncoder passwordEncoder() {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.csrf(AbstractHttpConfigurer::disable)
.cors((Customizer<CorsConfigurer<HttpSecurity>>) corsConfig)
.cors(Customizer.withDefaults())
.formLogin(AbstractHttpConfigurer::disable)
.httpBasic(AbstractHttpConfigurer::disable)
.headers(AbstractHttpConfigurer::disable)
Expand Down

0 comments on commit c32d894

Please sign in to comment.