Connection error 401: Permission denied - invalid csrf token requires relogin

Liam

Active Member
Oct 15, 2014
6
0
41
I keep getting this error:
Connection error 401: Permission denied - invalid csrf token

I keep getting this error after a while and I just need to login again and i can continue to work. but it happens all the time and gets in the way of my configuration.
I am not sure what to look at.

I am able to log in and modify my config, migrate vms, all the things you would want to do, but every so often this error pops up and I have to relogin. This just started happening after adding a new host to the cluster.
 
Hello,

Are you using Nginx Proxy on the node? - if yes please provide us with the Nginx config.
 
Hi, I am trying to configure nginx proxy manager for easy access to my VMs and I'm getting the same error but only when I try to connect to the host machine. Here's what I've come up with so far:

Code:
location / {
    return 302 https://dl580.lan:8006/?console=shell&novnc=1&vmid=0&vmname=&node=dl580&resize=on&cmd=;
}

location /win7 {
    return 302 https://dl580.lan:8006/?console=kvm&novnc=1&vmid=700107010&vmname=windows7&node=dl580&resize=on;
}

location /android1 {
    return 302 https://dl580.lan:8006/?console=kvm&novnc=1&vmid=700507050&vmname=android1&node=dl580&resize=on;
}

The first one is the host and I get a csrf token error when I open the page. It successfully loads when I refresh.