Skip to content

Commit

Permalink
Fix: MVC allowedOrigins 링크 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suminiee authored Aug 20, 2024
2 parents a1b8e16 + f9567bf commit c472c0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000",
"http://0.0.0.0:3000")
"http://0.0.0.0:3000",
"https://d14yvif52hqxqx.cloudfront.net/")
.allowedMethods("GET","POST","PUT","DELETE", "PATCH")
.allowCredentials(true);

Expand Down

0 comments on commit c472c0f

Please sign in to comment.