]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header 30/head
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 13 Oct 2016 00:11:48 +0000 (20:11 -0400)
committerKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 13 Oct 2016 00:11:48 +0000 (20:11 -0400)
Bugzilla/API/1_0/Server.pm

index a443cd51435549ff8d70ff1b426c1beb7cbcfaba..4dd0c7ddbe3d15e9723ddedbadecc59174dee7fd 100644 (file)
@@ -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;