yes? (pls i beg)
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 43s

This commit is contained in:
Braydon 2024-09-19 00:25:34 -04:00
parent 3bf9002e64
commit 22805e252e

@ -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);
}
};
}