Skip to content

Commit

Permalink
test: cors error resolve test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
donghyuun committed Nov 16, 2024
1 parent 83963a7 commit e4f2781
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://1.618.s3-website.ap-northeast-2.amazonaws.com/") // 허용할 도메인 (모든 도메인 허용: "*")
.allowedOriginPatterns("http://1.618.s3-website.ap-northeast-2.amazonaws.com") // 허용할 도메인 (모든 도메인 허용: "*")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") // 허용할 HTTP 메서드
.allowedHeaders("*") // 허용할 헤더
.allowCredentials(true); // 인증 정보 허용 여부
Expand Down

0 comments on commit e4f2781

Please sign in to comment.