@nebulon Thanks for the info! I hadn't realised that is how it is supposed to work.
I have Firefox set to clear cookies and site data on exit, so this explains why I see the message again even after logging in to NextCloud.
I will allow site data for my domain and that will solve the problem for me.