Skip to content

Commit

Permalink
hotfix: add public access for /v1/experiment-posts/counts and /v1/exp…
Browse files Browse the repository at this point in the history
…eriment-posts/{postId} (#30)
  • Loading branch information
Ji-soo708 committed Jan 26, 2025
1 parent 64aab5a commit ae17910
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ class WebSecurityConfig {
jwtTokenProvider: JwtTokenProvider,
handlerExceptionResolver: HandlerExceptionResolver
): SecurityFilterChain = httpSecurity
.securityMatcher("/v1/auth/**", "/v1/members/signup/**", "/v1/emails/**")
.securityMatcher("/v1/auth/**", "/v1/members/signup/**", "/v1/emails/**",
"/v1/experiment-posts/counts", "/v1/experiment-posts/{postId}/**")
.csrf { it.disable() }
.cors(Customizer.withDefaults())
.sessionManagement {
it.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
}
.authorizeHttpRequests {
it.requestMatchers("/v1/auth/**").permitAll()
it.requestMatchers("/v1/members/signup/**", "/v1/emails/**").permitAll()
it.requestMatchers("/v1/members/signup/**", "/v1/emails/**",
"/v1/experiment-posts/counts", "/v1/experiment-posts/{postId}/**").permitAll()
it.anyRequest().authenticated()
}
.build()
Expand Down

0 comments on commit ae17910

Please sign in to comment.