diff options
author | Kohei Yoshino <kohei.yoshino@gmail.com> | 2016-10-13 02:11:48 +0200 |
---|---|---|
committer | Kohei Yoshino <kohei.yoshino@gmail.com> | 2016-10-13 02:11:48 +0200 |
commit | a716dc746cca1dc5d65e90b0dde3473ad84328c3 (patch) | |
tree | 1539cf8867e6f11b08407dd4930937a06dd1b506 /Bugzilla/API | |
parent | 31651c978e921e9e46cddd455f103fcf4b1a332a (diff) | |
download | bugzilla-a716dc746cca1dc5d65e90b0dde3473ad84328c3.tar.gz bugzilla-a716dc746cca1dc5d65e90b0dde3473ad84328c3.tar.xz |
Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header
Diffstat (limited to 'Bugzilla/API')
-rw-r--r-- | Bugzilla/API/1_0/Server.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |