From c2396a73944b06344bb21d114427807a6c23d7ef Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 20 Apr 2022 08:46:50 +0400 Subject: [PATCH] #3 -- allow cors requests --- src/main/java/ru/ulstu/configuration/MvcConfiguration.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java index da1fb85..f743271 100644 --- a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java +++ b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java @@ -3,7 +3,6 @@ package ru.ulstu.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.LocaleResolver; -import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; @@ -41,9 +40,4 @@ public class MvcConfiguration implements WebMvcConfigurer { public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(localeInterceptor()); } - - @Override - public void addCorsMappings(CorsRegistry registry) { - registry.addMapping("/**"); - } }