Skip to content

Commit b58399e

Browse files
committed
fix : access swagger-ui.html
1 parent 47b3d87 commit b58399e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: blog-backend/src/main/java/me/ktkim/blog/config/WebSecurityConfig.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void configure(WebSecurity web) throws Exception {
9999
.antMatchers(HttpMethod.OPTIONS, "/**")
100100
.antMatchers("/app/**/*.{js,html}")
101101
.antMatchers("/content/**")
102-
.antMatchers("/swagger-ui..html")
102+
.antMatchers("/swagger-ui.html")
103103
.antMatchers("/h2-console/**");
104104
}
105105

@@ -136,8 +136,9 @@ protected void configure(HttpSecurity http) throws Exception {
136136
.permitAll()
137137
.antMatchers(HttpMethod.GET, "/api/posts/**").permitAll()
138138
.antMatchers(HttpMethod.GET, "/api/comments/**").permitAll()
139-
.antMatchers("/", "/error", "/api/authenticate/**", "/api/register", "/auth/authenticate"
140-
, "/auth/signup", "/oauth2/**", "/h2-console/**", "/swagger-ui.html")
139+
.antMatchers("/", "/error", "/api/authenticate/**", "/api/register",
140+
"/auth/authenticate", "/auth/signup", "/oauth2/**", "/h2-console/**",
141+
"/v2/**", "/swagger-ui.html", "/swagger-resources/**")
141142
.permitAll()
142143
.anyRequest()
143144
.authenticated()

0 commit comments

Comments
 (0)