Skip to content

Commit

Permalink
Merge pull request #68 from devocean-finut/fix/issue
Browse files Browse the repository at this point in the history
#60 Fix SecurityConfig : cors만 재추가
  • Loading branch information
plum-king authored Nov 14, 2024
2 parents 798d2c0 + 46cc7f6 commit eb2e1ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, CustomOAuth2Us
)
.defaultSuccessUrl("/success", true)
)
.csrf(AbstractHttpConfigurer::disable); // post 요청을 위한 csrf disable
// .cors(cors -> cors.configurationSource(corsConfigurationSource()))
.csrf(AbstractHttpConfigurer::disable) // post 요청을 위한 csrf disable
.cors(cors -> cors.configurationSource(corsConfigurationSource()));
// .headers(headers -> headers.frameOptions(frameOptions -> frameOptions.sameOrigin()));

return http.build();
Expand Down

0 comments on commit eb2e1ad

Please sign in to comment.