Commit d943c464 authored by dklawren's avatar dklawren Committed by GitHub

Merge pull request #30 from kyoshino/bug-1309737-user-agent

Bug 1309737 - Add User-Agent to the Access-Control-Allow-Headers header
parents 3c9e2a8c a716dc74
......@@ -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;
......
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