Double click connect/disconnect + CSRF check failed


I have a strange behavior of my NexCloud installation. I am doing some test as admin and user. When I switch between user and admin accounts, I often have to click 2 times on connect or disconnect command, and once connected often the message “CSRF check failed” is displayed: I have to go to the root URL to enter NextCloud. See this video for more clearness:

Thanks for your advice

B. Seutin