Skip to content

Commit

Permalink
[#202] feat(WebConfig): PATCH 메서드 추가 및 allowedOriginPatterns에 도메인 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld committed Aug 31, 2024
1 parent c8c12ec commit eec1926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/beat/global/common/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*") // 모든 도메인 허용
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedOrigins("https://www.sinjibabo.shop", "https://www.beatlive.kr")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
}
Expand Down

0 comments on commit eec1926

Please sign in to comment.