summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-17 16:48:36 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-17 16:48:36 +0200
commit777e09ba5f6b68035a78e57a9a55734bc646b445 (patch)
tree163767e98083c466c07ecb339f10a9a99b6c6062 /Bugzilla/WebService/Server
parent982fb2378e451516698032cfbca95b8278df2b89 (diff)
downloadbugzilla-777e09ba5f6b68035a78e57a9a55734bc646b445.tar.gz
bugzilla-777e09ba5f6b68035a78e57a9a55734bc646b445.tar.xz
Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP headers can be used when making the request
r/a=glob
Diffstat (limited to 'Bugzilla/WebService/Server')
-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;