Skip to content

Commit

Permalink
add :: 등록되지 않은 url 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Apr 4, 2024
1 parent 254c00b commit ad92600
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,16 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests((authorizeRequests) ->
authorizeRequests
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()

// auth
.requestMatchers(HttpMethod.POST, "/api/v2/auth/signin").permitAll()
.anyRequest().permitAll()
.requestMatchers(HttpMethod.PATCH, "/api/v2/auth").permitAll()
.requestMatchers(HttpMethod.DELETE, "/api/v2/auth").permitAll()

// user
.requestMatchers(HttpMethod.GET, "/api/v2/my").authenticated()

.anyRequest().authenticated()
)

.addFilterBefore(new JwtFilter(jwtProvider), UsernamePasswordAuthenticationFilter.class);
Expand Down

0 comments on commit ad92600

Please sign in to comment.