|
|
@@ -36,7 +36,7 @@ class SecurityConfiguration {
|
|
|
.httpBasic(Customizer.withDefaults())
|
|
|
.headers(headers -> headers.frameOptions(frameOptionsConfig -> frameOptionsConfig.sameOrigin()))//liberar o banco
|
|
|
.authorizeHttpRequests(auth -> auth
|
|
|
- .requestMatchers("/login", "/images/**", "/css/**", "/error/**").permitAll()
|
|
|
+ .requestMatchers("/login", "/images/**", "/css/**", "/error/**", "/").permitAll()
|
|
|
.requestMatchers(HttpMethod.POST, "/authentication/login").permitAll()
|
|
|
.requestMatchers("/auth/**").permitAll()
|
|
|
.requestMatchers("/api/**").authenticated()
|