Sitecore Identity Server: Sorry, There Was an Error

After restoring the upgraded database to the SQL, I tried to login into the Sitecore CMS. The identity server comes with an error "Sorry, there was an error" after successful login.

identity-server-error

I have checked the Identity server logs files and found the error: CORS policy execution failed.

Solution:

Go to the {root-directory}\project-identityserver.local\Config\production and open Sitecore.IdentityServer.Host.xml file and verify the database name.

If it is corrects, then check the <AllowedCorsOrigins> section.

In my case it was related to the database name, I forget to update the database name and connection string in the identity server.

Note: Do not forget to recycle the Identity Server App pool.

Happy Sitecoreing ðŸ˜Š

Comments

Popular posts from this blog

Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

Import CSV Data in Sitecore Using PowerShell: Part-3

Sitecore : The database principal owns a schema in the database, and cannot be dropped message