From: Dave Lawrence Date: Tue, 17 Sep 2013 14:48:36 +0000 (-0400) Subject: Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP... X-Git-Tag: bugzilla-4.5.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777e09ba5f6b68035a78e57a9a55734bc646b445;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index 4145455ecb..2216911c90 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;