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 @Override
public void addCorsMappings(@NonNull CorsRegistry registry) { public void addCorsMappings(@NonNull CorsRegistry registry) {
// Allow all origins to access the API // 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("/**") registry.addMapping("/**")
.allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods .allowedOrigins("*") // Allow all origins
.allowedHeaders("*") .allowedMethods("*") // Allow all methods
.allowCredentials(true); .allowedHeaders("*"); // Allow all headers
} }
}; };
} }