'Unable to issue redirect for OAuth 2.0 transaction' error from hosted page

I’m trying to set up universal login with the hosted page, using the custom UI template.
Calls to /authorize return the login/sign up screen as expected, but after a successful login I get the above error.

Here’s the section of code for webAuth, the only change to default I’ve made is specifying the scope:

      var params = Object.assign({
    domain: config.auth0Domain,
    clientID: config.clientID,
    redirectUri: config.callbackURL,
    responseType: 'code'
  }, config.internalOptions);

  var webAuth = new auth0.WebAuth(params);

  var databaseConnection = 'Username-Password-Authentication';

  function login(e) {
    e.preventDefault();
    var username = document.getElementById('email').value;
    var password = document.getElementById('password').value;
    webAuth.login({
      realm: databaseConnection,
      username: username,
      password: password
    }, function(err) {
      if (err) displayError(err);
    });
  }

Is there a setting I’ve missed somewhere?

I should add, there is a callback url defined for the client, and I’ve tried hard coding it here, same result.

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there but sometimes there are just too many questions. Sorry for that!

Do you still require further assistance?