Skip to content

Commit

Permalink
Merge pull request #33 from kw-bookmedicine/hotfix/swagger-api
Browse files Browse the repository at this point in the history
fix : 권한 설정으로 인해 swagger api에 대한 요청이 막힌 버그 수정
  • Loading branch information
Simy2 authored Feb 26, 2024
2 parents 236a08f + 3f2e463 commit 71669fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
//나중에 배포할 때 수정(모든 곳에 혀용되지 않도록)
http.
authorizeHttpRequests((auth) -> auth
.requestMatchers("/login", "/", "/signup").permitAll()
.requestMatchers("/login", "/", "/signup","/swagger-ui/**" ,"/v3/api-docs/**").permitAll()
.requestMatchers("/admin").hasRole("ADMIN")
.requestMatchers("/hello").hasRole("USER")
.anyRequest().authenticated()
Expand Down

0 comments on commit 71669fa

Please sign in to comment.