Have to pass the request when calculating the cookie domain
Add require, just to be safe