From 02f9afbcde534a9ffe7be13c2788f090390240bf Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 00:20:59 -0400 Subject: [PATCH] fix cors allowed origins???? --- src/main/java/cc/pulseapp/api/PulseAPI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/pulseapp/api/PulseAPI.java b/src/main/java/cc/pulseapp/api/PulseAPI.java index 1e69e87..220a78c 100644 --- a/src/main/java/cc/pulseapp/api/PulseAPI.java +++ b/src/main/java/cc/pulseapp/api/PulseAPI.java @@ -9,6 +9,7 @@ import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServic import org.springframework.context.annotation.Bean; import org.springframework.http.HttpMethod; import org.springframework.web.servlet.config.annotation.CorsRegistry; +import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import java.io.File; @@ -21,7 +22,7 @@ import java.util.Objects; * @author Braydon */ @SpringBootApplication(exclude = UserDetailsServiceAutoConfiguration.class) -@Log4j2(topic = "PulseApp") +@Log4j2(topic = "PulseApp") @EnableWebMvc public class PulseAPI { @SneakyThrows public static void main(@NonNull String[] args) {