Add new Access-Control-Allow-Headers value into http response header, closes #688

This commit is contained in:
Lukáš Vlček 2011-02-15 17:02:20 +01:00 committed by kimchy
parent 442ce9daaa
commit 12a33e6a91
1 changed files with 1 additions and 0 deletions

View File

@ -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.