Skip to content

Commit

Permalink
Merge pull request #225 from cathaaaaand/dev
Browse files Browse the repository at this point in the history
fix: cors ์ˆ˜์ •
  • Loading branch information
daeundada authored May 14, 2024
2 parents b9672ef + b990bb5 commit dd81b3e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public JwtAuthorizationFilter jwtAuthorizationFilter() {
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http
.cors(cors -> cors.configurationSource(request -> new org.springframework.web.cors.CorsConfiguration().applyPermitDefaultValues()))
.addFilterBefore(new CustomCorsFilter(), UsernamePasswordAuthenticationFilter.class)
.csrf(AbstractHttpConfigurer::disable)
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
Expand Down

0 comments on commit dd81b3e

Please sign in to comment.