JS Origin без порта

// origin without the port
`${window.location.protocol}//${window.location.hostname}`
garzj