okay pls yes pls pls
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 51s
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 51s
This commit is contained in:
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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user