#3 -- allow cors requests
This commit is contained in:
parent
4836aaa332
commit
00a4d75673
@ -17,6 +17,9 @@ class ControllersConfiguration {
|
||||
config.addAllowedHeader("*");
|
||||
config.addAllowedMethod("GET");
|
||||
config.addAllowedMethod("POST");
|
||||
config.addAllowedMethod("PUT");
|
||||
config.addAllowedMethod("PATCH");
|
||||
config.addAllowedMethod("OPTIONAL");
|
||||
config.addAllowedMethod("DELETE");
|
||||
source.registerCorsConfiguration("/**", config);
|
||||
return new CorsFilter(source);
|
||||
|
Loading…
Reference in New Issue
Block a user