Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Amri 195 posts 700 karma points
    Sep 04, 2018 @ 05:55
    David Amri
    0

    Preview node denied X-Frame-Options

    Hi,

    I'm not able to preview any node in Umbraco because the X-Frame-Options is set to "deny". Now this is true for the frontend, but within the:

    <location path="umbraco">
    </location>
    

    I'm setting the X-Frame-Options to "SAMEORIGIN". Any ideas why the X-Frame-Options setting in Umbraco isn't working?

    /David

  • Alex Brown 129 posts 618 karma points
    Sep 04, 2018 @ 11:54
    Alex Brown
    0

    Have you removed the header first? My tag looks like the following:

      <location path="umbraco">
        <system.webServer>
          <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
          <httpProtocol>
            <customHeaders>
              <remove name="X-Frame-Options" />
              <add name="X-Frame-Options" value="SAMEORIGIN" />
            </customHeaders>
          </httpProtocol>
        </system.webServer>
      </location>
    
  • David Amri 195 posts 700 karma points
    Sep 04, 2018 @ 12:46
    David Amri
    0

    Hi Alex,

    Yes, I do remove the header first. My header looks exactly like yours. :/

    / David

  • Vetrivel 21 posts 130 karma points
    Nov 12, 2020 @ 04:59
    Vetrivel
    0

    Hi David/Alex,

    Did you fix this issue, I too have the same problem, and I updated the config files too.

    thanks.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies