Skip to content

Commit

Permalink
fix: CORS 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
limjustin committed Jun 2, 2024
1 parent c1c4722 commit 5d8d056
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**")
.allowedOrigins("https://jejucart-front.vercel.app", "http://localhost:3000")
.allowedOriginPatterns("*")
.allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE")
.allowCredentials(true);
}
Expand Down

0 comments on commit 5d8d056

Please sign in to comment.