specify samesite none and secure asp.net core code example
Example: how to change samesite=lax to samesite=none in asp.net
response.Headers.Append("set-cookie", $"{key}={value}; path=/; SameSite=None; Secure");
response.Headers.Append("set-cookie", $"{key}={value}; path=/; SameSite=None; Secure");