Spring Boot MCQ Quiz Hub

Spring Boot - CORS

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

1. Full name of CORS?




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




3. Choose correct for CORS




4. @CrossOrigin annotation supports specific REST API




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




6. Enable CORS in Controller Method




7. CORS Configuration can be Globally?




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




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