Add all methods to cors.
This commit is contained in:
parent
1484a7023c
commit
862d30fae9
@ -15,6 +15,7 @@ public class MvcConfiguration {
|
|||||||
@Override
|
@Override
|
||||||
public void addCorsMappings(CorsRegistry registry) {
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
registry.addMapping("/**")
|
registry.addMapping("/**")
|
||||||
|
.allowedMethods("GET", "POST", "PUT", "DELETE")
|
||||||
.allowedOrigins("http://localhost:5173")
|
.allowedOrigins("http://localhost:5173")
|
||||||
.allowCredentials(true);
|
.allowCredentials(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user