hello... Merry Christmas and Happy New Year... doe...
# server
s
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
Spring Security enables CSRF protection by default, that could cause the 403 response on the POST request
☝️ 1
s
Will check it
you are right... now it is working..thank you
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()
    }