src/main/java/fi/hh/jsonresume/config/WebMvcConfig.java
public void addCorsMapping(CorsRegistry registry) {
		registry.addMapping("/*")
		.allowedOrigins("*")
		.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
		.allowedHeaders("*")
		.allowCredentials(true)
		.maxAge(MAX_AGE_SECS);
	}
// Basic outdated Cors, SecurityConfig has a more detailed one, revert to this one if issues are found
Basic outdated Cors, SecurityConfig has a more detailed one, revert to this one if issues are found
Basic outdated Cors SecurityConfig has a more detailed one revert to this one if issues are found
public void addCorsMapping(CorsRegistry registry) {
		registry.addMapping("/*")
		.allowedOrigins("*")
		.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
		.allowedHeaders("*")
		.allowCredentials(true)
		.maxAge(MAX_AGE_SECS);
	}
public void addCorsMapping ( CorsRegistry registry ) { registry . addMapping ( "/*" ) . allowedOrigins ( "*" ) . allowedMethods ( "GET" , "POST" , "PUT" , "PATCH" , "DELETE" , "OPTIONS" ) . allowedHeaders ( "*" ) . allowCredentials ( true ) . maxAge ( MAX_AGE_SECS ) ; }
Basic outdated Cors, SecurityConfig has a more detailed one, revert to this one if issues are found
Basic outdated Cors SecurityConfig has a more detailed one revert to this one if issues are found