Skip to content

Commit

Permalink
fix: Dockerfile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sominyun committed Sep 7, 2024
1 parent 3d8f632 commit ae05429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/paws/devocean/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*") // 허용할 출처 : 특정 도메인만 받을 수 있음
.allowedMethods("GET", "POST") // 허용할 HTTP method
.allowCredentials(true); // 쿠키 인증 요청 허용
.allowedOriginPatterns("*")
.allowedMethods("GET")
.allowCredentials(true);
}
}

0 comments on commit ae05429

Please sign in to comment.