From 22805e252ede5e8d1ff0d5a910f3e02db8b4af27 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 00:25:34 -0400 Subject: [PATCH] yes? (pls i beg) --- src/main/java/cc/pulseapp/api/PulseAPI.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/cc/pulseapp/api/PulseAPI.java b/src/main/java/cc/pulseapp/api/PulseAPI.java index 50c8490..e591877 100644 --- a/src/main/java/cc/pulseapp/api/PulseAPI.java +++ b/src/main/java/cc/pulseapp/api/PulseAPI.java @@ -51,10 +51,9 @@ public class PulseAPI { public void addCorsMappings(@NonNull CorsRegistry registry) { // Allow all origins to access the API registry.addMapping("/**") - .allowedOrigins("https://pulseapp.cc") // Allow all origins .allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods .allowedHeaders("*") - .allowCredentials(true); // Allow all headers + .allowCredentials(true); } }; }