Should follow window.location.origin’s representation scheme://host:port.
window.location.origin
scheme://host:port