Spring Boot MCQ Quiz Hub

Spring Boot - CORS

Choose a topic to test your knowledge and improve your Spring Boot skills

Full name of CORS?





✅ Correct Answer: 1

CORS is a security concept that allows restricting the resources implemented in web browsers





✅ Correct Answer: 1

Choose correct for CORS





✅ Correct Answer: 3

@CrossOrigin annotation supports specific REST API





✅ Correct Answer: 1

@CrossOrigin annotation supports specific REST API, and not for the entire application.





✅ Correct Answer: 1

Enable CORS in Controller Method





✅ Correct Answer: 1

CORS Configuration can be Globally?





✅ Correct Answer: 1

@Bean configuration to set the CORS configuration support globally to your Spring Boot application.





✅ Correct Answer: 1

@Bean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurerAdapter() { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/products").allowedOrigins("http://localhost:9000"); } }; }





✅ Correct Answer: 1