Skip to content

Commit

Permalink
chore: allowCredentials 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eckrin committed Aug 23, 2024
1 parent a2ac1da commit 7e7cc33
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8000", "https://www.hyundaiseltos.site", "https://d3u0wfxb13l271.cloudfront.net") // 허용할 도메인
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") // 허용할 HTTP 메소드
.allowCredentials(true)
.allowedHeaders("*"); // 허용할 헤더
}
};
Expand Down

0 comments on commit 7e7cc33

Please sign in to comment.