Skip to content

Commit

Permalink
feat: webConfig 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonssshyeon committed Feb 24, 2024
1 parent fb95786 commit 3045893
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/gdsc/sc8/LIFTY/config/WebConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package gdsc.sc8.LIFTY.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("*")
.allowedMethods("*")
.allowedHeaders("*");

}
}

0 comments on commit 3045893

Please sign in to comment.