By default the CM_HOST value in the init.ps1 file of a XM Cloud project is set to xmcloud.localhost. I want to change this name to, for example xmcloudserge.loca.lt.

If I change the name I get a problem with the authentication from https://xmcloudserge.local.lt to sitecorecloud.io, which contains a hard reference to xmcloud.localhost as a return URL:


If I change the returnTo query-string parameter to https://xmcloudserge.local.lt I get the following error:

Callback URL mismatch.

The provided redirect_uri is not in the list of allowed callback URLs.

Please go to the Application Settings page and make sure you are sending a valid callback url from your application.

which sounds logical, because the return URL must be whitelisted.

The reason I want to do this is because I want the Sitecore container to be accessible to the outside world, for example by using a local tunnel with the tool localtunnel as follows:

lt --local-host xmcloudserge.loca.lt --port 443 --allow-invalid-cert --local-https -s xmcloudserge

Which should result in the URL https://xmcloudserge.loca.lt mapped to the same URL on my local machine.

Any ideas to accomplish this are greatly appreciated...

  • Why do you need the CM container to be accessible to the world?
    – Richard Seal
    Commented Oct 13, 2022 at 15:32

1 Answer 1


The short answer is no.

It is not possible to change the default url of xmcloudcm.localhost - this is a restriction as you expected, that the url must be whitelisted for the auth0 redirects. Because the authentication provider is hosted by Sitecore, it would not be scalable to add every combination of development url into the whitelist, so there is just this one that you can use for local development.

If you want to have an instance of XM Cloud exposed to the outside world, it would be better to create a new environment in your XM Cloud project and use that.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.