Fixes #789 Cookie domain suggested wrong with ".dev" TLD
Merge pull request #791 from Stefan-ST/fix-789

Fixes #789 Cookie domain suggested wrong with ".dev" TLD