Skip to content

Commit e81cbc6

Browse files
author
Milder Hernandez Cagua
committed
Remove cors configuration
1 parent d8d6b14 commit e81cbc6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

app/backend/src/main/java/com/microsoft/openai/samples/rag/Application.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,4 @@ public static void main(String[] args) {
1717
LOG.info("Application profile from system property is [{}]", System.getProperty("spring.profiles.active"));
1818
new SpringApplication(Application.class).run(args);
1919
}
20-
21-
@Bean
22-
public WebMvcConfigurer corsConfigurer() {
23-
return new WebMvcConfigurer() {
24-
@Override
25-
public void addCorsMappings(CorsRegistry registry) {
26-
registry
27-
.addMapping("/api/**")
28-
.allowedOrigins("http://localhost:8080");
29-
}
30-
};
31-
}
3220
}

0 commit comments

Comments
 (0)