Can you not just set the cookie name as part of your AddAuthentication call?
csharp
services.AddAuthentication()
.AddCookie(options => {
options.CookieName = "MyAuth.Cookie"
});
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I wanna hide that i use ASP.NET Core.
How to do this?
Can you not just set the cookie name as part of your AddAuthentication call?
csharp
services.AddAuthentication()
.AddCookie(options => {
options.CookieName = "MyAuth.Cookie"
});
.NET 5 is just .NET Core 4 renamed to avoid confusion. What is the cookie name you're seeing?
I dont know why but you cant rename cookie name with AddCookie(options...) you have to do
builder.Services.ConfigureApplicationCookie(opt =>{
opt.Cookie.Name = "YourCookieName";
});