Skip to content

Commit

Permalink
Merge pull request #25 from UMC-E-TEAM/feature/19
Browse files Browse the repository at this point in the history
cors
  • Loading branch information
songzuhee authored Jan 2, 2024
2 parents af15ff0 + 66816fd commit e60b18d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173")
.allowedMethods("OPTIONS","GET","POST","PUT","DELETE");
.allowedOrigins("*")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(false)
.maxAge(6000L);
}
}

0 comments on commit e60b18d

Please sign in to comment.