Originally reported by Federico Bond (Bitbucket: federicobond, GitHub: federicobond)
Chrome does not support cookies in pages opened with the file:// protocol.
We can replace the cookie with localStorage, which is widely supported across browsers and is probably more appropriate for this use case.