diff --git a/src/main/java/com/olympus/hermione/security/config/CorsConfig.java b/src/main/java/com/olympus/hermione/security/config/CorsConfig.java index 1684c98..7cd015e 100644 --- a/src/main/java/com/olympus/hermione/security/config/CorsConfig.java +++ b/src/main/java/com/olympus/hermione/security/config/CorsConfig.java @@ -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"); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c2a1f5a..978dc98 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 = * \ No newline at end of file +hermione.fe.url = \ No newline at end of file