Explorar o código

allow / in requestMatchers

EduLascala hai 1 mes
pai
achega
84149a8335

+ 1 - 1
src/main/java/com/platform2easy/genesis/security/config/SecurityConfiguration.java

@@ -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()

+ 0 - 0
src/main/resources/application-postgres.properties → src/main/resources/application-dev.properties