From: Kohei Yoshino Date: Thu, 13 Oct 2016 00:11:48 +0000 (-0400) Subject: Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header X-Git-Tag: release-5.1.2~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F30%2Fhead;p=thirdparty%2Fbugzilla.git Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header --- diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index a443cd5143..4dd0c7ddbe 100644 --- a/Bugzilla/API/1_0/Server.pm +++ b/Bugzilla/API/1_0/Server.pm @@ -152,7 +152,7 @@ sub print_response { my ($self, $response) = @_; # Access Control - my @allowed_headers = qw(accept content-type origin x-requested-with); + my @allowed_headers = qw(accept content-type origin user-agent x-requested-with); foreach my $header (keys %{ API_AUTH_HEADERS() }) { # We want to lowercase and replace _ with - my $translated_header = $header;