|
@@ -46,7 +46,7 @@ public class RestCorsFilter implements Filter {
|
46
|
if (allowedOrigins.contains(originHeader)) {
|
46
|
if (allowedOrigins.contains(originHeader)) {
|
47
|
response.setHeader("Access-Control-Allow-Origin", originHeader);
|
47
|
response.setHeader("Access-Control-Allow-Origin", originHeader);
|
48
|
response.setHeader("Access-Control-Allow-Credentials", "true");
|
48
|
response.setHeader("Access-Control-Allow-Credentials", "true");
|
49
|
- response.setHeader("Access-Control-Allow-Methods", "POST, GET, DELETE, PUT");
|
|
|
|
|
49
|
+ response.setHeader("Access-Control-Allow-Methods", "POST,GET,DELETE,PUT,OPTIONS");
|
50
|
response.setHeader("Access-Control-Max-Age", "31536000");
|
50
|
response.setHeader("Access-Control-Max-Age", "31536000");
|
51
|
response.setHeader("Access-Control-Allow-Headers", "*");
|
51
|
response.setHeader("Access-Control-Allow-Headers", "*");
|
52
|
response.setStatus(HttpServletResponse.SC_OK);
|
52
|
response.setStatus(HttpServletResponse.SC_OK);
|