Hapi's server.state accepts domain: null as an option, and this is a useful setting for me when in active development, because devs all use different local domains.
I think schema validation should be updated, and the logic here adapted to check property presence, not truthiness:
if (settings.hasOwnProperty('domain')) {
cookieOptions.domain = settings.domain;
}
Hapi's server.state accepts
domain: nullas an option, and this is a useful setting for me when in active development, because devs all use different local domains.I think schema validation should be updated, and the logic here adapted to check property presence, not truthiness: