Skip to content

Commit

Permalink
fix: CORS 허용 여러 Origin 모두 설정하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yoondgu committed Aug 2, 2023
1 parent db2a507 commit 20a4287
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedOrigins("https://mapbefine.kro.kr")
.allowedOrigins("https://mapbefine.com")
.allowedOrigins("http://localhost:3000", "https://mapbefine.kro.kr", "https://mapbefine.com")
.allowedMethods("*")
.exposedHeaders("Location");
}
Expand Down

0 comments on commit 20a4287

Please sign in to comment.