In Startup.cs add the following snippet in Configure
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
//...
app.UseCookiePolicy(new CookiePolicyOptions
{
Secure = CookieSecurePolicy.Always,
MinimumSameSitePolicy = SameSiteMode.None
});
//...
}