Preparing the Spring Boot backend
We will begin frontend development in this chapter with the unsecured version of our backend. Then:
- In Chapter 13, Adding CRUD Functionalities, we will implement all the CRUD functionalities.
- In Chapter 14, Styling the Frontend with MUI, we will continue to polish our UI using Material UI components.
- Finally, in Chapter 16, Securing Your Application, we will enable security in our backend, make some modifications that are required, and implement authentication.
In Eclipse, open the Spring Boot application that we created in Chapter 5, Securing Your Backend. Open the SecurityConfig.java
file that defines the Spring Security configuration. Temporarily comment out the current configuration and give everyone access to all endpoints. Refer to the following modifications:
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception
{
// Add this one
http.csrf((csrf) -> csrf.disable())...