public void Configure(ForwardedHeadersOptions options)
        {
            options.AllowedHosts = new List <string>
            {
                urlGenerator.BuildHost().ToString()
            };

            options.ForwardedHeaders      = ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost;
            options.ForwardLimit          = null;
            options.RequireHeaderSymmetry = false;

            options.KnownNetworks.Clear();
            options.KnownProxies.Clear();

            if (urlOptions.KnownProxies != null)
            {
                foreach (var proxy in urlOptions.KnownProxies)
                {
                    if (IPAddress.TryParse(proxy, out var address))
                    {
                        options.KnownProxies.Add(address);
                    }
                }
            }
        }