The steps mentioned by @sc.kautilya should be the first thing to look at and it should more or less solve the issue.
The detailed steps that I followed were:
1. Sitecore.Commerce.IdentityServer.Host.xml
[SitecoreIdentityServer\Config\Production\Sitecore.Commerce.IdentityServer.Host.xml] :
Look for the AllowedCORSOrigins setting. My configuration had multiple nodes of <AllowedCorsOriginsGroup2>
with the same values (precisely 18 nodes). I removed the duplicates. Final values:
<AllowedCorsOrigins><AllowedCorsOriginsGroup1>https://localhost:4200|https://localhost:5000</AllowedCorsOriginsGroup1><AllowedCorsOriginsGroup2>https://bizfx.sc9.com|https://commerceauthoring.sc9.com</AllowedCorsOriginsGroup2></AllowedCorsOrigins>
2. config.json for Business Tools [SitecoreBizFx\assets]
- EngineUri: Original value:
https://commerceauthoring.sc9.com
& I changed it to: https://localhost:5000
3. Sitecore.Commerce.Engine.Connect.config [website(sc92.dev.local)\App_Config\Include\Y.Commerce.Engine]
shopsServiceUrl: Original value: https://commerceauthoring.sc9.com/api/
& I changed it to: https://localhost:5000/api/
commerceOpsServiceUrl: Original value: https://commerceauthoring.sc9.com/commerceops/
& I changed it to: https://localhost:5000/commerceops/
certificateThumbprint: Original value: Thumbprint of the certificate installed with XC installation
& I changed it to: Thumbrpint of my localhost.pfx certificate residing in the wwwroot of my engine folder
Most Important: Restart IIS; Clear App pool of BizFx and clear the browser cache after all these steps