Skip to content

Commit

Permalink
feat #202 - allowedMethods에 PATCH 메서드 추가 및 allowedOriginPatterns에 도메인…
Browse files Browse the repository at this point in the history
… 명시 (#203)

* [#202] feat(WebConfig): PATCH 메서드 추가 및 allowedOriginPatterns에 도메인 명시

* [#202] feat(WebConfig): 클라이언트 localhost 주소 추가

* [#202] fix(WebConfig): 문자열 오타 수정
  • Loading branch information
hoonyworld committed Aug 31, 2024
1 parent c8c12ec commit e3a1283
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", "http://localhost:5173")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
}
Expand Down

0 comments on commit e3a1283

Please sign in to comment.