We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5927481 + 4a38fdb commit 6dce6ddCopy full SHA for 6dce6dd
src/main/java/com/sopkathon/global/config/WebConfig.java
@@ -0,0 +1,16 @@
1
+package com.sopkathon.global.config;
2
+
3
+import org.springframework.context.annotation.Configuration;
4
+import org.springframework.web.servlet.config.annotation.CorsRegistry;
5
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
6
7
+@Configuration
8
+public class WebConfig implements WebMvcConfigurer {
9
10
+ @Override
11
+ public void addCorsMappings(CorsRegistry corsRegistry) {
12
+ corsRegistry.addMapping("/**")
13
+ .allowedOrigins("*")
14
+ .allowedMethods("*");
15
+ }
16
+}
0 commit comments