Skip to content

Commit

Permalink
♻️ Refactor: http 오리진 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yxhwxn committed Jun 13, 2024
1 parent 0685b7c commit 06c030c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/khu/bigdata/infou/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public WebMvcConfigurer corsConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://infou-react-client.s3-website.ap-northeast-2.amazonaws.com")
.allowedOrigins("http://localhost:3000", "https://infou-react-client.s3-website.ap-northeast-2.amazonaws.com", "http://infou-react-client.s3-website.ap-northeast-2.amazonaws.com")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down

0 comments on commit 06c030c

Please sign in to comment.