okay pls yes pls pls
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 51s

This commit is contained in:
Braydon 2024-09-19 00:29:39 -04:00
parent 1a564dd4f3
commit 59ba94f6b7

@ -50,10 +50,14 @@ public class PulseAPI {
@Override
public void addCorsMappings(@NonNull CorsRegistry registry) {
// Allow all origins to access the API
// registry.addMapping("/**")
// .allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods
// .allowedHeaders("*")
// .allowCredentials(true);
registry.addMapping("/**")
.allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods
.allowedHeaders("*")
.allowCredentials(true);
.allowedOrigins("*") // Allow all origins
.allowedMethods("*") // Allow all methods
.allowedHeaders("*"); // Allow all headers
}
};
}