ETLMCPData Conveyance Works
Log in Start free
Docs

Switching workspaces: open tabs, 'invalid csrf token' and two clients side by side

Why a save in another tab fails with 'invalid csrf token' after you switch workspace, and how to work on two clients side by side.

The workspace and organization you work in belong to your login session, not to a browser tab. Every tab in the same browser shares that session, so switching workspace in one tab switches all of them. A tab you opened before the switch still holds the old security token, and its next save fails with invalid csrf token. Reload that tab and the save works again, but the tab now shows the workspace you switched to. To keep two clients open at once, use a second browser profile or a private window.

What a switch changes

You can switch workspace from Switch workspace in the side rail or from the Workspaces page, and switch organization from the Organizations table in Settings (it appears only when you belong to more than one). Each switch does two things to your session:

  • It points the session at the new workspace or organization. Every tab in that browser sends the same session cookie, so every tab now works there.
  • It gives the session a new CSRF token, a value each page must send back with every change it makes.

A page is drawn with the token the session had at that moment and keeps it until you reload. After a switch, any button or save in an older tab sends the old token, and etlmcp refuses the request with a 403 and the bare message invalid csrf token. Nothing is saved. This is deliberate: a page drawn for client A can never write into client B by accident.

Fixing the error

Reload the tab. The page is drawn again with the current token and the save works. Then check the workspace name in the side rail: after the reload the tab shows the workspace you switched to, not the one it showed before. If you meant to change something in the old workspace, switch back and then make the change.

Logging in again in the same browser, for example as a colleague or with another account, starts a new session. Older tabs lose their token the same way and need a reload.

When your access changes under you

If an owner removes you from the workspace your session is in, or the workspace is deleted, your next request moves the session to another workspace you can still reach, and the token changes as it does on a switch. A request that arrives in the middle of that move gets a 409 with your workspace just changed; reload the page. Reload, and check which workspace you are in now.

Connecting a platform across a switch

A platform sign-in remembers the workspace it was started from. If you start connecting an account, switch workspace in another tab, and then finish the sign-in, the connection is still saved in the workspace you started from, and you see Connected, in the workspace you started from. Switch to it to choose its accounts. Switch back to pick its accounts in the account picker.

The sign-in is also tied to your session and organization. If you switch organization or log in again before it finishes, nothing is saved and you see That connect link has expired or was already used. Start again with Connect.

Where your next login opens

A workspace switch is remembered for that organization, and an organization switch becomes your default. Your next login opens the organization you last switched to and, in it, the workspace you last switched to, as long as you can still reach both.

Working on two clients side by side

Because tabs share one session, two tabs of the same browser cannot show two workspaces at once. A second browser profile, a private window or a different browser each keeps its own cookies, so each holds its own login session. Log in there, switch to the second workspace, and both stay where you put them. Switching in one never breaks saves in the other.

See workspaces and roles for who can reach which workspace.

Related