Set the document.domain instead of window.location.hostname