diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java b/modules/elasticsearch/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java index 7b7f81945f7..5956dfc34a7 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/http/netty/NettyHttpChannel.java @@ -70,6 +70,7 @@ public class NettyHttpChannel implements HttpChannel { // also add more access control parameters resp.addHeader("Access-Control-Max-Age", 1728000); resp.addHeader("Access-Control-Allow-Methods", "PUT, DELETE"); + resp.addHeader("Access-Control-Allow-Headers", "X-Requested-With"); } // Convert the response content to a ChannelBuffer.