frontend url modified

This commit is contained in:
Sumedh
2024-10-16 13:49:14 +00:00
parent 9af8dca896
commit f17ee97084
2 changed files with 4 additions and 5 deletions

View File

@@ -8,13 +8,13 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class CorsConfig implements WebMvcConfigurer {
@Value("${ariadne.fe.url}")
private String ariadne_frontend_url;
@Value("${hermione.fe.url}")
private String hermione_frontend_url;
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(ariadne_frontend_url)
.allowedOrigins(hermione_frontend_url)
.allowedHeaders("*")
.allowedMethods("GET", "POST", "PUT", "DELETE","OPTIONS");
}

View File

@@ -33,5 +33,4 @@ logging.level.org.springframework.ai.chat.client.advisor=DEBUG
eureka.client.serviceUrl.defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
eureka.instance.preferIpAddress: true
hermione.fe.url = *
ariadne.fe.url = *
hermione.fe.url =