package lp.web.webtemplate.config;

import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class CORSFilter implements WebMvcConfigurer {

	@Override
	public void addCorsMappings(CorsRegistry registry) {
		registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*");
	}
}

@@ -29,16 +29,77 @@
 onfig;%0A%0A
+import org.springframework.context.annotation.Configuration;%0A
 import o
@@ -237,16 +237,31 @@
 gurer;%0A%0A
+@Configuration%0A
 public c

Fix cors default configuration