All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.urjc.etsii.grafo.events.WebConfigDisableCORS Maven / Gradle / Ivy

//package es.urjc.etsii.grafo.solver.services.events;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class WebConfigDisableCORS implements WebMvcConfigurer {
//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**")
//                .allowedOrigins("*")
//                .allowedMethods("*")
//                .allowedHeaders("*")
//                .allowCredentials(false)
//                .maxAge(3600);
//    }
//}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy