                                return response;
                            }, cancellationToken);
                }
                else
                {
                    return base.SendAsync(request, cancellationToken).ContinueWith(t =>
                            {
                                var resp = t.Result;
                                resp.Headers.Add(
                                    accessControlAllowOrigin,
                                    request.Headers.GetValues(origin).First());
                                
                                return resp;
                            });
                }