1@Override
2 public void addCorsMappings(CorsRegistry registry) {
3 registry.addMapping("/**").allowedOrigins("*")
4 .allowedMethods("GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS")
5 .allowedHeaders("Content-Type", "api_key", "Authorization", "X-Requested-With");
6 }