We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117e51f commit edfa898Copy full SHA for edfa898
service/src/main/java/io/github/sergejsvisockis/documentservice/config/WebMvcConfig.java
@@ -0,0 +1,16 @@
1
+package io.github.sergejsvisockis.documentservice.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.EnableWebMvc;
6
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7
8
+@Configuration
9
+@EnableWebMvc
10
+public class WebMvcConfig implements WebMvcConfigurer {
11
12
+ @Override
13
+ public void addCorsMappings(CorsRegistry registry) {
14
+ registry.addMapping("/**");
15
+ }
16
+}
0 commit comments