Skip to content

Commit

Permalink
[Feature] - CORS 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjungL authored Jul 16, 2024
1 parent c0cd1ed commit c7a95c0
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package woowacourse.touroot.global.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000");
}
}

0 comments on commit c7a95c0

Please sign in to comment.