You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm learning Spring Boot and I was watching the from zero to hero tutorial where at some point we connect to the H2 console.
I checked the code of this repo out and then created an associated IDEA project easily then started the application.
I wanted to log in H2 console to access the embedded DB but it does not worked. Always ended up in 403 error.
After searches on the web it seems to be a security configuration issue. After reading this article I've updated the io.spring.demo.issuesdashboard.WebSecurityConfig#configure code to be :
and after restart I was able to connect to the H2 console.
Note that really am a beginner with Spring framework so I will not create a PR since I'm not sure this is the correct and secure way to fix the issue but it definitely seems that there is an issue to access the H2 console with the current code state...
The text was updated successfully, but these errors were encountered:
Hi,
I'm learning Spring Boot and I was watching the from zero to hero tutorial where at some point we connect to the H2 console.
I checked the code of this repo out and then created an associated IDEA project easily then started the application.
I wanted to log in H2 console to access the embedded DB but it does not worked. Always ended up in 403 error.
After searches on the web it seems to be a security configuration issue. After reading this article I've updated the
io.spring.demo.issuesdashboard.WebSecurityConfig#configure
code to be :and after restart I was able to connect to the H2 console.
Note that really am a beginner with Spring framework so I will not create a PR since I'm not sure this is the correct and secure way to fix the issue but it definitely seems that there is an issue to access the H2 console with the current code state...
The text was updated successfully, but these errors were encountered: