how can I disable 'X-Frame-Options' on the cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello

I am displaying the shopping cart in a Iframe in on of my site.
The product catalogue and product detail page display properly. But not the cart page
The get this error
Refused to display 'http://store-test.cim.org/cart' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

I tried disabling X-Frame-Options with allow-from ... in IIS but that dis not work.

I can I turn this off in my Nocpommerce solution.

Please help
7 years ago
I found a solution that seems to work

Add the line below in the global.asax.cs
  protected void Application_Start()
        {
            // disable X-Frame-Options to allow the site to be viewed in an iframe . Lorent
            System.Web.Helpers.AntiForgeryConfig.SuppressXFrameOptionsHeader = true;
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.