Answers for "cors filter spring boot not working in the tomcat web application"

1

spring cors

public WebMvcConfigurer corsConfigurer() {
		return new WebMvcConfigurer() {
			@Override
			public void addCorsMappings(CorsRegistry registry) {
				registry.addMapping("/greeting-javaconfig").allowedOrigins("http://localhost:9000");
			}
		};
	}Copy
Posted by: Guest on June-29-2020

Code answers related to "cors filter spring boot not working in the tomcat web application"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language