From a716dc746cca1dc5d65e90b0dde3473ad84328c3 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 12 Oct 2016 20:11:48 -0400 Subject: Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header --- Bugzilla/API/1_0/Server.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index a443cd514..4dd0c7ddb 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; -- cgit v1.2.3-24-g4f1b