Skip to content

Commit

Permalink
fix : cors 에러 다시 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
alsduq1117 committed Sep 6, 2023
1 parent 4e15c79 commit f5003a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/co/kr/jurumarble/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void addInterceptors(InterceptorRegistry registry) {
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods(ALLOWED_METHOD_NAMES.split(","))
.allowedOrigins("http://localhost:3000","https://jurumarble-git-develop-chooz.vercel.app/")
.allowedOrigins("http://localhost:3000","https://jurumarble-git-develop-chooz.vercel.app/","https://jurumarble.site","https://jurumarble.vercel.app/")
.maxAge(3600);
}
}

0 comments on commit f5003a1

Please sign in to comment.