package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;

@SpringBootApplication //(exclude = {SecurityAutoConfiguration.class })
public class SpringProyectApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringProyectApplication.class, args);
		
	}
	@Bean

	public WebMvcConfigurerAdapter corsConfigurer() {
		return new WebMvcConfigurerAdapter() {
			@Override
			public void addCorsMappings(CorsRegistry registry) {
				registry.addMapping("/**").allowedOrigins("*").allowedMethods("GET", "POST", "OPTIONS", "PUT", "DELETE")
						.allowedHeaders("Content-Type", "X-Requested-With", "accept", "Origin",
								"Access-Control-Request-Method", "Access-Control-Request-Headers")
						.exposedHeaders("Access-Control-Allow-Origin", "Access-Control-Allow-Credentials")
						.allowCredentials(true).maxAge(3600);
			}
		};
	}
}

@@ -447,582 +447,7 @@
 %09%7D%0A%09
-@Bean%0A%0A%09public WebMvcConfigurerAdapter corsConfigurer() %7B%0A%09%09return new WebMvcConfigurerAdapter() %7B%0A%09%09%09@Override%0A%09%09%09public void addCorsMappings(CorsRegistry registry) %7B%0A%09%09%09%09registry.addMapping(%22/**%22).allowedOrigins(%22*%22).allowedMethods(%22GET%22, %22POST%22, %22OPTIONS%22, %22PUT%22, %22DELETE%22)%0A%09%09%09%09%09%09.allowedHeaders(%22Content-Type%22, %22X-Requested-With%22, %22accept%22, %22Origin%22,%0A%09%09%09%09%09%09%09%09%22Access-Control-Request-Method%22, %22Access-Control-Request-Headers%22)%0A%09%09%09%09%09%09.exposedHeaders(%22Access-Control-Allow-Origin%22, %22Access-Control-Allow-Credentials%22)%0A%09%09%09%09%09%09.allowCredentials(true).maxAge(3600);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%7D
 %0A%7D%0A

Update SpringProyectApplication.java