JS origem sem porta

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