summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-12-22 20:20:22 +0100
committerDavid Lawrence <dkl@mozilla.com>2014-12-22 20:20:22 +0100
commitb290e224c068400a18b39b76097fb3522a82c5b8 (patch)
tree64b5e4c935ce06ccd15f2003c0f2619016260e0d /Bugzilla/WebService
parentbe26c119991e5e4e6ec28a881bc0860a4cd9aefc (diff)
downloadbugzilla-b290e224c068400a18b39b76097fb3522a82c5b8.tar.gz
bugzilla-b290e224c068400a18b39b76097fb3522a82c5b8.tar.xz
Bug 1098291: OPTION response for CORS requests to REST doesn't allow X-Requested-With
r=glob,a=glob
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Server/REST.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index ab3062c08..b3d35595f 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;