Revert "Set domain correctly with using cookies with localhost."

This reverts commit 889f7053d50c078f36f0ce7ba2065fca1e57e4e0.