If you’re running locally as a developer then the system will work with just localhost or dockerhost if mapped in your /etc/hosts file.
If you deployed via beanstalk then for now you must have a valid domain that is accessed via www.mydomain.com. Currently you cannot have sub-sub-domains so stuff like www.corp.mydomain.com will not work. It’s a known issue we’re working on to fix.