11
Spring CORS 'Access-Control-Allow-Origin' başlığı yok
Web.xml'yi java config'e taşıdıktan sonra aşağıdaki sorunu alıyorum No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. Birkaç Bahar referansına dayanarak, aşağıdaki girişim denendi: @Configuration @ComponentScan(basePackageClasses = AppConfig.class, useDefaultFilters = false, includeFilters = { @Filter(org.springframework.stereotype.Controller.class) }) @EnableWebMvc public class WebConfig extends WebMvcConfigurerAdapter { …
89
spring
spring-mvc
cors