From dc81c85f53fd2f725224b02e46b790752ddb4ca0 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 18 Sep 2024 23:42:32 -0400 Subject: [PATCH] fix cors? --- src/main/java/cc/pulseapp/api/config/AppConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/pulseapp/api/config/AppConfig.java b/src/main/java/cc/pulseapp/api/config/AppConfig.java index 05d20fb..48f0c0b 100644 --- a/src/main/java/cc/pulseapp/api/config/AppConfig.java +++ b/src/main/java/cc/pulseapp/api/config/AppConfig.java @@ -17,7 +17,7 @@ public class AppConfig { @Override public void addCorsMappings(@NonNull CorsRegistry registry) { // Allow all origins to access the API - registry.addMapping("/v*/**") + registry.addMapping("*") .allowedOrigins("*") // Allow all origins .allowedMethods("*") // Allow all methods .allowedHeaders("*"); // Allow all headers