diff --git a/src/main/java/ru/ulstu/is/sbapp/WebConfiguration.java b/src/main/java/ru/ulstu/is/sbapp/WebConfiguration.java new file mode 100644 index 0000000..e94e27b --- /dev/null +++ b/src/main/java/ru/ulstu/is/sbapp/WebConfiguration.java @@ -0,0 +1,13 @@ +package ru.ulstu.is.sbapp; + +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 WebConfiguration implements WebMvcConfigurer { + @Override + public void addCorsMappings(CorsRegistry registry) + { + registry.addMapping("/**").allowedMethods("*"); + } +}