isSameOrigin is a better name