Skip to content

Commit f7e10e7

Browse files
feat(config): Allow Swagger UI access in Spring Security
1 parent f30a4b0 commit f7e10e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

securetimenotes/src/main/java/securetimenotes/andrefelipebarros/securetimenotes/infra/security/SecurityConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
3636
.requestMatchers(HttpMethod.POST, "/auth/login").permitAll()
3737
.requestMatchers(HttpMethod.POST, "/auth/register").permitAll()
3838
.requestMatchers("/h2-console/**").permitAll()
39-
.requestMatchers("/swagger**", "/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
39+
.requestMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
4040
.anyRequest().authenticated()
4141
)
4242
.addFilterBefore(securityFilter, UsernamePasswordAuthenticationFilter.class)

0 commit comments

Comments
 (0)