I’ve got a multi-site setup in Umbraco 14, and when I access any backoffice url (mysite.com/umbraco), I get the following error:
error: invalid_request
error_description: The specified ‘redirect_uri’ is not valid for this client application.
error_uri: https://documentation.openiddict.com/errors/ID2043
The exception is that after restarting my server, I can access the backoffice of the first site I try, but then after that, all the others will give the aforementioned error.
I’ve tried setting UmbracoApplicationUrl in appsettings, which fixed the issue for whichever site I put there, but the problem is that I have a multi-site setup, where I need to access the backoffice from multiple sites. How can I achieve this?

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/114865-accessing-backoffice-on-multi-site-setup-gives-error-the-specified-redirect_uri-is-not-valid-for-this-client-application