I installed Commerce 9 in a new VM. Everything works fine, but when I am trying to open Bussiness Tools I got next exception :
In the content editor I could see all categories and products.
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.Sign up to join this community
Go to the config.json of your CommerceAuthoring website such as:
In the AppSettings\AllowedOrigins, make sure that an entry to your BizFx's URL is in the list. It's normally, localhost:4200, but since you changed it, you need to update this config setting.
Per Andrey's comment, yes, the URLs are case-sensitive.
Can you make sure you have done all of the following steps:
Update the BizFxUri parameter in SitecoreBizFx\assets\config.json in your BizFx instance.
Update the AllowedOrigins parameter in wwwroot\config.json in your Commerce Engine instance. Double check here to make sure the protocol is https and not http.
Replace the default URL (localhost:4200) in the RedirectUris, PostLogoutRedirectUris, AllowedCorsOrigins parameters in SitecoreIdentityServer\wwwroot\appsettings.json in your Identity Server instance.
Finally, clear all browser cache and try again. This last step is important.