From 37f3ebbd6ad2decba559cfdf0b686d5be8b27975 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 00:17:21 -0400 Subject: [PATCH] fix cors allowed origins???? --- src/main/java/cc/pulseapp/api/PulseAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/pulseapp/api/PulseAPI.java b/src/main/java/cc/pulseapp/api/PulseAPI.java index cc0f778..1e69e87 100644 --- a/src/main/java/cc/pulseapp/api/PulseAPI.java +++ b/src/main/java/cc/pulseapp/api/PulseAPI.java @@ -50,7 +50,7 @@ public class PulseAPI { public void addCorsMappings(@NonNull CorsRegistry registry) { // Allow all origins to access the API registry.addMapping("/**") - .allowedOrigins("*") // Allow all origins + .allowedOrigins("https://pulseapp.cc") // Allow all origins .allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods .allowedHeaders("*"); // Allow all headers }