File tree Expand file tree Collapse file tree
presentation/src/main/kotlin/com/dobby/api/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,14 +71,20 @@ class WebSecurityConfig {
7171 securityManager : SecurityManager ,
7272 handlerExceptionResolver : HandlerExceptionResolver
7373 ): SecurityFilterChain = httpSecurity
74- .securityMatcher(" /v1/experiment-posts/{postId}/details" )
74+ .securityMatcher(
75+ " /v1/experiment-posts/{postId}/details" ,
76+ " /v1/experiment-posts/{postId}/details/related"
77+ )
7578 .csrf { it.disable() }
7679 .cors(Customizer .withDefaults())
7780 .sessionManagement {
7881 it.sessionCreationPolicy(SessionCreationPolicy .STATELESS )
7982 }
8083 .authorizeHttpRequests {
81- it.requestMatchers(" /v1/experiment-posts/{postId}/details" ).permitAll()
84+ it.requestMatchers(
85+ " /v1/experiment-posts/{postId}/details" ,
86+ " /v1/experiment-posts/{postId}/details/related"
87+ ).permitAll()
8288 }
8389 .addFilterBefore(
8490 JwtOptionalAuthenticationFilter (securityManager, handlerExceptionResolver),
You can’t perform that action at this time.
0 commit comments