summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2016-10-14 22:01:36 +0200
committerDylan William Hardison <dylan@hardison.net>2016-10-14 22:01:36 +0200
commit0bd2c876589e8a86a086460f05fdca72f34b1609 (patch)
treea8a24c528bef988d242576daa101ecc4e8c2ba09
parentcc3141625e4c87387259c38e4ab5f56820621768 (diff)
downloadbugzilla-0bd2c876589e8a86a086460f05fdca72f34b1609.tar.gz
bugzilla-0bd2c876589e8a86a086460f05fdca72f34b1609.tar.xz
Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header
-rw-r--r--Bugzilla/WebService/Server/REST.pm2
1 files changed, 1 insertions, 1 deletions
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;