From: David Lawrence Date: Mon, 22 Dec 2014 19:20:22 +0000 (+0000) Subject: Bug 1098291: OPTION response for CORS requests to REST doesn't allow X-Requested... X-Git-Tag: release-5.1.1~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b290e224c068400a18b39b76097fb3522a82c5b8;p=thirdparty%2Fbugzilla.git Bug 1098291: OPTION response for CORS requests to REST doesn't allow X-Requested-With r=glob,a=glob --- diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index ab3062c088..b3d35595f7 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -135,7 +135,7 @@ sub response { # Access Control $response->header("Access-Control-Allow-Origin", "*"); - $response->header("Access-Control-Allow-Headers", "origin, content-type, accept"); + $response->header("Access-Control-Allow-Headers", "origin, content-type, accept, x-requested-with"); # ETag support my $etag = $self->bz_etag;