Skip to content

Commit

Permalink
Merge pull request TeamMajorLink#44 from kimdavid0521/feat#43
Browse files Browse the repository at this point in the history
cors 에러 해결
  • Loading branch information
kimdavid0521 authored Aug 17, 2024
2 parents 46918f5 + c518e56 commit 76b1e80
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("**/")
.allowedOrigins("http://localhost:3000") // 허용할 도메인
.allowedOrigins("http://localhost:3008")
.allowedOrigins("http://localhost:3007") //프론트 테스트 url
.allowedMethods("POST", "GET", "DELETE", "PUT")
Expand Down

0 comments on commit 76b1e80

Please sign in to comment.