Skip to content

Commit

Permalink
feat: webconfig 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kamothi committed Nov 3, 2024
1 parent 0d43dbf commit 5321c4f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/kutaverse/manager/config/WebConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package kutaverse.manager.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("GET", "POST", "PUT", "DELETE");
}
}

0 comments on commit 5321c4f

Please sign in to comment.