cors headers for https in spring addcorsmappings code example
Example: cors headers for https in spring web mvc
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("*")
.allowedMethods("GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("Content-Type", "api_key", "Authorization", "X-Requested-With");
}