Add domain setting

This adds a domain setting for the cookie endpoint.