Skip to content

Commit 79f1a05

Browse files
authored
Merge pull request #486 from Team-0ops/develop
πŸš€[DEPLOY] develop β†’ main κ²Œμ‹œκΈ€ 상세 쑰회 인증 인가 ν—ˆμš©
2 parents 4f1d3e5 + d3eca8c commit 79f1a05

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

β€Žsrc/main/java/Oops/backend/common/security/util/JwtAuthenticationFilter.javaβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
4848
"/.well-known/**",
4949
"/json",
5050
"/json/**",
51-
"/devtools/**"
51+
"/devtools/**",
52+
"/api/posts/*"
5253
};
5354

5455
@Override

β€Žsrc/main/java/Oops/backend/config/SecurityConfig.javaβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http,
7474
"/swagger-ui/**",
7575
"/swagger-ui.html"
7676
).permitAll()
77+
.requestMatchers(HttpMethod.GET, "/api/posts/{postId}").permitAll()
7778
.requestMatchers(HttpMethod.GET, "/favicon.ico").permitAll()
7879
.anyRequest().authenticated()
7980
)

0 commit comments

Comments
Β (0)