Our QA build stays on the login page after adding the following lines of code. The website has a http URL. It is not SSL Enabled. It always redirects to /AccountLogin/SignIn?ReturnUrl=/
builder.Services.AddSession(options =>
{
options.Cookie.HttpOnly = true;
options.Cookie.IsEssential = true;
options.Cookie.SecurePolicy = builder.Environment.IsDevelopment()
? CookieSecurePolicy.SameAsRequest
: CookieSecurePolicy.Always;
});
How do I troubleshoot this? When I point code to the QA environment, cookie policy is being set to 'SameAsRequest'. Can I somehow see this setting on a browser? I tried to make our development environment point to http not ssl but I cannot reproduce this issue. I also tried to use the QA build environment and run our code. Either way I am able to login. It does not work when going to the QA build website. How do I know what is causing the problem? After entering the credentials, it just stays on the sign page as if its not processing something