Built-in server: CORS — add X-Requested-With to allowed headers

This commit is contained in:
Vladimir Krivosheev
2017-09-25 16:04:19 +02:00
parent ebb0c03f2e
commit 79387e4b2d
@@ -108,7 +108,7 @@ public final class NettyUtil {
.allowCredentials()
.allowNullOrigin()
.allowedRequestMethods(HttpMethod.GET, HttpMethod.POST, HttpMethod.PUT, HttpMethod.DELETE, HttpMethod.HEAD, HttpMethod.PATCH)
.allowedRequestHeaders("origin", "accept", "authorization", "content-type", "x-ijt")
.allowedRequestHeaders("origin", "accept", "authorization", "content-type", "x-ijt", "x-requested-with")
.build()));
}