Skip to content

Commit

Permalink
Fix [#49] cors 코드수정 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusYoo authored Jul 14, 2024
2 parents d62e748 + caa31a5 commit f62213e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class WebSecurityConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**") //* *모든 경로에 대해*
.allowedOrigins("https://localhost:3000", "http://localhost:3000")
registry.addMapping("/**") //* *모든 경로에 대해*
.allowedOrigins("https://localhost:5173", "http://localhost:5173")
.allowedHeaders("*")
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name()) //* *허용할* *HTTP* *메소드 목록*
.allowCredentials(true)
Expand Down

0 comments on commit f62213e

Please sign in to comment.