Add cross-domain support to cookie setting