Preparing the Spring Boot backend
We are beginning frontend development with the unsecured version of our backend. In the first phase, we will implement all CRUD functionalities and test that these are working correctly. In the second phase, we will enable security in our backend, make the modifications that are required, and finally, implement authentication.
Open the Spring Boot application with Eclipse, which we created in Chapter 5, Securing and Testing 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:
@Override protected void configure(HttpSecurity http) throws Exception { // Add this row http.csrf().disable().cors().and() .authorizeRequests().anyRequest().permitAll(); /* Comment this out &...