4

I am working on a Sitecore Managed Cloud project and for that, I want to patch AllowedCorsOrigins node to add AllowedCorsOriginsGroup2 for adding custom domain of CM site in Identity Server.

Since this is a Sitecore Host application so patching should work as explained here.

When I update file (root)\Config\production\Sitecore.IdentityServer.Host.xml directly then everything is working fine as explained here but patching is not.

To patch that file I tried following -

I created a patch file as shown below

<?xml version="1.0" encoding="utf-8" ?>
<Settings>
  <Sitecore>
    <IdentityServer>      
      <Clients>
        <DefaultClient>
          <AllowedCorsOrigins>
            <AllowedCorsOriginsGroup2>https://cm.mysite.com</AllowedCorsOriginsGroup2>
          </AllowedCorsOrigins>
        </DefaultClient>
      </Clients>
    </IdentityServer>
  </Sitecore>
</Settings>

and kept it in this location - sitecoreruntime > production > Sitecore.IdentityServer.Host.xml

enter image description here

but it's not working. I also tried keeping patch file to sitecoreruntime > config > production > Sitecore.IdentityServer.Host.xml

enter image description here

Tried renaming patch file too to z.Sitecore.IdentityServer.Host.xml but no luck.

After every change, I restarted app service.

Sitecore version - 9.1.1

What am I doing wrong? Is there any way to view the final/merged configuration of Sitecore Host application something similar to showconfig.aspx?

1 Answer 1

3

Your patch file is at incorrect location, folder structure should be like - enter image description here

in your case error is here - enter image description here

put config folder inside your environment folder, such as sitecoreruntime > production > config > Sitecore.IdentityServer.Host.xml

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.