Skip to content

Commit

Permalink
!hotfix: allowedOrigins port 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
daeun084 committed Sep 1, 2024
1 parent cdaaa44 commit b62e6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/FITPET/dev/common/config/WebConfig.java
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("/**") // 모든 경로에 대해 CORS를 허용
.allowedOrigins("http://localhost:8080")
.allowedOrigins("http://localhost:3000")
.allowedMethods("GET", "POST", "PATCH", "DELETE")
.allowedHeaders("*") // 허용할 헤더
.allowCredentials(true); // 자격 증명 허용
Expand Down

0 comments on commit b62e6cc

Please sign in to comment.