MCQs > IT & Programming > Spring MVC >

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(); 

} }

Spring MVC MCQs

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(); 

} }

Answer

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

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it