Skip to content

Commit ca859a9

Browse files
authored
Merge pull request #245 from ShallWeProject/infra/239-monitoring
모니터링 관련 시큐리티 설정을 변경한다.
2 parents 6a216aa + 37aa10a commit ca859a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/shallwe/global/config/security/SecurityConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@Configuration
3535
@EnableWebSecurity
3636
public class SecurityConfig {
37-
37+
3838
private final CustomUserDetailsService customUserDetailsService;
3939
private final CustomDefaultOAuth2UserService customOAuth2UserService;
4040
private final CustomSimpleUrlAuthenticationSuccessHandler oAuth2AuthenticationSuccessHandler;
@@ -83,6 +83,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
8383
.authorizeHttpRequests(authorize -> authorize
8484
.requestMatchers("/", "/error", "/favicon.ico", "/**/*.png", "/**/*.gif", "/**/*.svg", "/**/*.jpg", "/**/*.html", "/**/*.css", "/**/*.js")
8585
.permitAll()
86+
.requestMatchers("/management/**")
87+
.permitAll()
8688
.requestMatchers("/swagger", "/swagger-ui.html", "/swagger-ui/**", "/api-docs", "/api-docs/**", "/v3/api-docs/**")
8789
.permitAll()
8890
.requestMatchers("/login/**","/auth/**", "/oauth2/**")

0 commit comments

Comments
 (0)