From 3bf9002e64e5499b7448153dbe1dff0610f53ada Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 00:22:48 -0400 Subject: [PATCH] allow creds? --- 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 220a78c..50c8490 100644 --- a/src/main/java/cc/pulseapp/api/PulseAPI.java +++ b/src/main/java/cc/pulseapp/api/PulseAPI.java @@ -53,7 +53,8 @@ public class PulseAPI { registry.addMapping("/**") .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 + .allowedHeaders("*") + .allowCredentials(true); // Allow all headers } }; }