For the following Java configuration, Explain why the Cross Site Request Forgery protection is not correctly configured?
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http .csrf().disable();
} }
Correct Answer:
Need to include the @Configuration annotation in the class definition
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Spring MVC MCQ Questions