Might want to use `window.location.origin` to grab the actual domain. Staging has the wrong url and we might switch to https at some point.