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
|
@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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user