summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-17 16:50:49 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-17 16:50:49 +0200
commitfc32690344a4762e9b08d7618a167c43a9dc7504 (patch)
tree395a6fbe91a73290c194cb23e04c476b7486e738
parent63a1d66888534a188525dc13a159908adcc86a67 (diff)
downloadbugzilla-fc32690344a4762e9b08d7618a167c43a9dc7504.tar.gz
bugzilla-fc32690344a4762e9b08d7618a167c43a9dc7504.tar.xz
Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP headers can be used when making the request
-rw-r--r--Bugzilla/WebService/Server/REST.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index 4145455ec..2216911c9 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -124,6 +124,7 @@ sub response {
# Access Control
$response->header("Access-Control-Allow-Origin", "*");
+ $response->header("Access-Control-Allow-Headers", "origin, content-type, accept");
# ETag support
my $etag = $self->bz_etag;