Commit a716dc74 authored by Kohei Yoshino's avatar Kohei Yoshino

Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header

parent 31651c97
...@@ -152,7 +152,7 @@ sub print_response { ...@@ -152,7 +152,7 @@ sub print_response {
my ($self, $response) = @_; my ($self, $response) = @_;
# Access Control # 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() }) { foreach my $header (keys %{ API_AUTH_HEADERS() }) {
# We want to lowercase and replace _ with - # We want to lowercase and replace _ with -
my $translated_header = $header; my $translated_header = $header;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment