Skip to content

Commit

Permalink
🚑 [HOTFIX] CORS 정책 문제로 인한 WebConfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kchaeeun committed Aug 17, 2024
1 parent be557e6 commit a984414
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ public class WebConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("**/")
.allowedOrigins("http://localhost:3008")
.allowedOrigins("http://localhost:3007") //프론트 테스트 url
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:3007","http://localhost:3008") //프론트 테스트 url
.allowedMethods("POST", "GET", "DELETE", "PUT")
.allowedHeaders("*");
}
Expand Down

0 comments on commit a984414

Please sign in to comment.