Skip to main content

Sitecore 10.2 Identity Server invalid_request Error

Sitecore 10.2 Identity Server invalid_request Error


While I was trying to log in to Sitecore content management, the below error was coming "Sorry, There was an error: invalid request".

Sitecore 10.2 Identity Server invalid_request Error


So after some investigation, I found that for the content management server I had a different hostname which I need to configure in Sitecore. 

Solution

To solve this error go to <IdentityServer>\Config\production\Sitecore.IdentityServer.Host.xml and add one AllowedCorsOriginsGroup2 inside AllowedCorsOrigins.


  <AllowedCorsOrigins>  
       <AllowedCorsOriginsGroup1>https://xx.xx</AllowedCorsOriginsGroup1>  
        <AllowedCorsOriginsGroup2>https://xx-xx-xx.xx.xx</AllowedCorsOriginsGroup2>  
  </AllowedCorsOrigins>  
Sitecore 10.2 Identity Server invalid_request Error


Comments