Skip to content

Commit

Permalink
fix: CORS 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
mingulmangul committed Nov 25, 2023
1 parent cb0300c commit 668a3e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
.authorizeRequests()
.antMatchers(HttpMethod.OPTIONS).permitAll()
.antMatchers("/programs/created",
"/programs/liked",
"/programs/registered",
"/programs/*/registrations",
"/auth/logout").authenticated()
.antMatchers("/auth/**", "/oauth/**").permitAll()
.antMatchers(HttpMethod.GET).permitAll()
.antMatchers(HttpMethod.OPTIONS).permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)
Expand Down

0 comments on commit 668a3e0

Please sign in to comment.