fix(cookies): cookies should be set on localhost

Set domain to null when it's localhost
Cookie was not being set on Chrome when domain was localhost