Skip to content

Commit

Permalink
refactor: cors url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
82everywin committed Mar 5, 2025
1 parent 023e7c0 commit b029f03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000","http://localhost:8080", "https://bookmile.site")
.allowedOrigins("http://localhost:8080", "https://bookmile.site","https://bookmile.netlify.app")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);

}
}

0 comments on commit b029f03

Please sign in to comment.