Custom domain with auth0.js getting error "You should not be hitting this endpoint"

This error can appear if you haven’t done the additional configuration required in the hosted login page?