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 99cd148 commit 09d849dCopy full SHA for 09d849d
app/backend/src/main/java/com/microsoft/openai/samples/rag/config/WebConfig.java
@@ -0,0 +1,16 @@
1
+package com.microsoft.openai.samples.rag.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 WebConfig implements WebMvcConfigurer{
11
12
+ @Override
13
+ public void addCorsMappings(CorsRegistry registry) {
14
+ registry.addMapping("/**");
15
+ }
16
+}
0 commit comments