hello...
Merry Christmas and Happy New Year...
does anyone has any experience with Spring Security?
I added the dependency of spring-security into the project, logged in with the generated password, i can access all the pages using their links directly. but there is one page that I still can access but I can't use its form with
POST
function, i get the 403 error, why this is happening?
r
Riccardo Lippolis
12/30/2022, 8:41 AM
Spring Security enables CSRF protection by default, that could cause the 403 response on the POST request
☝️ 1
s
Saher Al-Sous
12/30/2022, 9:20 AM
Will check it
Saher Al-Sous
12/30/2022, 6:54 PM
you are right... now it is working..thank you
Saher Al-Sous
12/30/2022, 7:01 PM
why is it that everytime I enable password encryption i can't login anymore. i always get
Bad credentials
even though i'm using the provided password? is it that the password doesn't match with the encrypted password?
Copy code
@Bean
fun passwordEncoder(): PasswordEncoder {
return BCryptPasswordEncoder()
}