# Login page redirects to login page again

**URL:** <https://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481>\
**Category:** Radzen.Blazor Components\
**Created:** [June 16, 2023, 8:31pm UTC](https://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481 "2023-06-16T20:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ghazisarhan](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/c37758/32.png) [@ghazisarhan](https://forum.radzen.com/u/ghazisarhan)\
**Post date:** [June 23, 2023, 9:47pm UTC](https://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481/6 "2023-06-23T21:47:21Z")

</div>

Update to whom might have the same issue, in addition to [korchev answer](http://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481/2), I had to replace the below in Program.cs:

```auto
builder.Services.AddHttpClient("AppName").AddHeaderPropagation(o => o.Headers.Add("Cookie"));

```

With this:

```auto
builder.Services.AddHttpClient("AppName")
    .ConfigurePrimaryHttpMessageHandler(() => new
        HttpClientHandler()
        {
            ClientCertificateOptions = ClientCertificateOption.Manual,
            ServerCertificateCustomValidationCallback = (httpRequestMessage, cert, cetChain, policyErrors) =>
            {
                return true;
            }
        }).AddHeaderPropagation(o => o.Headers.Add("Cookie"));

```

This is not secured if your website is public on the internet, but if you have an internal site with self signed certificate and you have problem with the login page, then try this.

---

_[View the full topic](https://forum.radzen.com/t/login-page-redirects-to-login-page-again/14481)._
