From 9da1f1ddbd802cefae6802e1cb65e796b5a15042 Mon Sep 17 00:00:00 2001 From: Milana Ievlewa Date: Wed, 13 Mar 2024 18:38:03 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20's?= =?UTF-8?q?rc/main/java/com/example/demo/WebConfig.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/demo/WebConfig.java | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/main/java/com/example/demo/WebConfig.java diff --git a/src/main/java/com/example/demo/WebConfig.java b/src/main/java/com/example/demo/WebConfig.java deleted file mode 100644 index d5585a1..0000000 --- a/src/main/java/com/example/demo/WebConfig.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.example.demo; - -import org.springframework.context.annotation.Configuration; -import org.springframework.lang.NonNull; -import org.springframework.web.servlet.config.annotation.CorsRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -@Configuration -public class WebConfig implements WebMvcConfigurer { - @Override - public void addCorsMappings(@NonNull CorsRegistry registry) { - registry.addMapping("/**") - .allowedMethods("GET", "POST", "PUT", "DELETE"); - } -}