fix cors allowed origins????
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:17:21 -04:00
parent 840813bfee
commit 37f3ebbd6a

@ -50,7 +50,7 @@ public class PulseAPI {
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("/**") registry.addMapping("/**")
.allowedOrigins("*") // Allow all origins .allowedOrigins("https://pulseapp.cc") // Allow all origins
.allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods .allowedMethods(Arrays.stream(HttpMethod.values()).map(HttpMethod::name).toArray(String[]::new)) // Allow all methods
.allowedHeaders("*"); // Allow all headers .allowedHeaders("*"); // Allow all headers
} }