Skip to content

Commit

Permalink
♻️Refactor:Config 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunxeum committed Nov 2, 2024
1 parent 115547c commit 6c223bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(authorizeRequests ->
authorizeRequests
.requestMatchers("/", "/login**", "/oauth2/**", "/login", "/loginFailure", "/error", "/user/login").permitAll() // 일반 로그인 허용
.requestMatchers("/", "/login**", "/oauth2/**", "/login", "/loginFailure", "/error", "/user/login","/swagger-ui.html",
"/swagger-ui/**",
"/v3/api-docs/**",
"/swagger-resources/**").permitAll() // 일반 로그인 허용
.requestMatchers("/user/kakao/**").authenticated()
.anyRequest().permitAll() // 모든 요청 허용
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public OpenAPI openAPI() {
))
.addSecurityItem(new SecurityRequirement().addList(securitySchemeName))
.info(apiInfo())
.servers(List.of(new Server().url(serverUrl)));
.servers(List.of(new Server().url(serverUrl), new Server().url("http://localhost:8080")));

}

private Info apiInfo() {
Expand Down

0 comments on commit 6c223bd

Please sign in to comment.