]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header
authorKohei Yoshino <kohei.yoshino@gmail.com>
Fri, 14 Oct 2016 20:01:36 +0000 (16:01 -0400)
committerDylan William Hardison <dylan@hardison.net>
Fri, 14 Oct 2016 20:01:36 +0000 (16:01 -0400)
Bugzilla/WebService/Server/REST.pm

index 5266f8fa7d3528a310bebf92897c0f5652c726fd..d9381b2c8fd10977c2807798501a683447f3d6dd 100644 (file)
@@ -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;