frontend url modified
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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 =
|
||||
Reference in New Issue
Block a user