Skip to content

Commit

Permalink
[MERGE/#16] - CORS 설정파일 변경
Browse files Browse the repository at this point in the history
[HOTFIX] #16 - CORS 설정파일 변경
  • Loading branch information
seokbeom00 authored Jul 8, 2024
2 parents 2f7673c + f7aef84 commit a400a31
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:8081", "http://localhost:5173")
.allowedOrigins("http://localhost:8080", "http://localhost:8081", "http://localhost:5173",
"https://api.seonyak-dev.kro.kr")
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
.maxAge(3000);
}
Expand Down

0 comments on commit a400a31

Please sign in to comment.