Skip to content

Commit

Permalink
Merge pull request #224 from dionisos198/Refactor/#219-bug-refactor
Browse files Browse the repository at this point in the history
Fix: cors (#219)
  • Loading branch information
dionisos198 authored Dec 5, 2024
2 parents 95a2327 + 4b45291 commit c05fbbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") // cors를 적용할 spring서버의 url 패턴.
.allowedOrigins(
"http://localhost:3000"
"http://localhost:3000","http://www.withcre8.kr","https://www.withcre8.kr"
,"http://withcre8.kr","https://withcre8.kr","https://localhost:3000") // cors를 허용할 도메인. 제한을 모두 해제하려면 "**"
.allowedMethods("GET", "POST", "PUT", "PATCH",
"DELETE", "OPTIONS") // cors를 허용할 method + DELETE 추가
Expand Down

0 comments on commit c05fbbf

Please sign in to comment.