Browse Source

Delete cors config class

Blazej 3 năm trước cách đây
mục cha
commit
6d02f55ff9

+ 0 - 17
src/main/java/com/example/plantsforyou/security/config/CorsConfig.java

@@ -1,17 +0,0 @@
-package com.example.plantsforyou.security.config;
-
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.config.annotation.CorsRegistry;
-import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-
-@Configuration
-@EnableWebMvc
-public class CorsConfig implements WebMvcConfigurer {
-    @Override
-    public void addCorsMappings(CorsRegistry registry) {
-        registry.addMapping("/**")
-                .allowedMethods("*")
-                .allowedHeaders("*");
-    }
-}