From 0bd2c876589e8a86a086460f05fdca72f34b1609 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Fri, 14 Oct 2016 16:01:36 -0400 Subject: Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header --- Bugzilla/WebService/Server/REST.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index 5266f8fa7..d9381b2c8 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -142,7 +142,7 @@ sub response { { rpc => $self, result => \$result, response => $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