We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ffef13 commit 90b141fCopy full SHA for 90b141f
src/main/java/com/memesphere/global/config/CorsMvcConfig.java
@@ -0,0 +1,15 @@
1
+package com.memesphere.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 CorsMvcConfig implements WebMvcConfigurer {
9
10
+ @Override
11
+ public void addCorsMappings(CorsRegistry corsRegistry) {
12
+ corsRegistry.addMapping("/**")
13
+ .allowedOrigins("http://localhost:3000", "http://15.164.103.195");
14
+ }
15
+}
0 commit comments