Add new Access-Control-Allow-Headers value into http response header, closes #688
This commit is contained in:
parent
442ce9daaa
commit
12a33e6a91
|
@ -70,6 +70,7 @@ public class NettyHttpChannel implements HttpChannel {
|
||||||
// also add more access control parameters
|
// also add more access control parameters
|
||||||
resp.addHeader("Access-Control-Max-Age", 1728000);
|
resp.addHeader("Access-Control-Max-Age", 1728000);
|
||||||
resp.addHeader("Access-Control-Allow-Methods", "PUT, DELETE");
|
resp.addHeader("Access-Control-Allow-Methods", "PUT, DELETE");
|
||||||
|
resp.addHeader("Access-Control-Allow-Headers", "X-Requested-With");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the response content to a ChannelBuffer.
|
// Convert the response content to a ChannelBuffer.
|
||||||
|
|
Loading…
Reference in New Issue