fix: don't call getCookie when running in node

There is no such thing as `document` in node. We should find another way
to get the csrf token in this case.
4 jobs for topic/default/no-cookies-on-node in 5 minutes and 26 seconds (queued for 24 seconds)
Status Job ID Name Coverage
  Deps
passed Deps #362973

00:04:15

 
  Test
passed CanBuild #362976

00:01:08

passed Format #362975

00:00:49

passed Lint #362974

00:01:10