Friday, September 7, 2018

Builder tab not loading in Sitecore with sameorigin deny errors

<configuration  xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <appSettings>
    <add key="localenv:define" xdt:Transform="InsertIfMissing" xdt:Locator="Match(key)" />
    <add key="localenv:define" value="local" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
    <add key="search:define" xdt:Transform="InsertIfMissing" xdt:Locator="Match(key)" />
    <add key="search:define" value="Solr" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
    <add key="role:define" xdt:Transform="InsertIfMissing" xdt:Locator="Match(key)"  />
    <add key="role:define" value="Standalone" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
    <add key="region:define" xdt:Transform="InsertIfMissing" xdt:Locator="Match(key)"  />
    <add key="region:define" value="east" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
  </appSettings>

  <system.web>
    <httpCookies requireSSL="true" httpOnlyCookies="true" xdt:Transform="SetAttributes(requireSSL,httpOnlyCookies)" />

    <authentication mode="Forms">
      <forms requireSSL="true" xdt:Transform="SetAttributes(requireSSL)"/>
    </authentication>

    <httpRuntime enableVersionHeader="false" xdt:Transform="SetAttributes(enableVersionHeader)"/>

  </system.web>

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-Frame-Options" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" />
        <add name="X-Frame-Options" value="SAMEORIGIN" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />       
      </customHeaders>
    </httpProtocol>
  </system.webServer>
 
</configuration>





X-Frame-Options value was DENY instead of SAMEORIGIN and I could not see Builder tab on templates in sitecore. 

No comments:

Post a Comment