Add config

This commit is contained in:
Katerina881 2023-02-13 15:51:57 +04:00
parent d4b050b4f5
commit 5e08a59326

View File

@ -0,0 +1,13 @@
package ip.labwork;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
class WebConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry){
registry.addMapping("/**").allowedMethods("*");
}
}