1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 inline question

Discussion in 'XenForo Questions and Support' started by Gabby, Sep 18, 2013.

  1. Gabby

    Gabby Well-Known Member

    How can I inline my forum into my main website? I keep getting this permission error. I know how to inline but need to fix permission in my cpanel.

    "The website you are trying to display in the inline frame does not allow you to do that."
     
  2. Amaury

    Amaury Well-Known Member

    Have you checked your server error logs?
     
  3. Digital Doctor

    Digital Doctor Well-Known Member

  4. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Not really possible. XenForo sends a header that prevents it from being included inside a frame :) That is by design
    Frames has not been the way to go for years now

    If you really, *really* want to do it remove this line
    Code:
    $this->_response->setHeader('X-Frame-Options', 'SAMEORIGIN');
    
    from library/XenForo/ViewRenderer/Abstract.php
     
    Gabby likes this.
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    Rigel, the click jacking configuration option should fix that.
     
    Gabby and Brogan like this.
  6. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Oh, you are right ...

    Alternative
    In your library/config.php

    Add this at the end

    Code:
    $config['enableClickjackingProtection'] = false;
    
     
  7. Gabby

    Gabby Well-Known Member

    Digital... thanks.. don't know if you were being mean or not but I did search but I used I and frame not iframe together.

    And thank you to all the rest... we will use your suggestions today.
     
  8. Gabby

    Gabby Well-Known Member

    Jeremy, were would I find this 'click jacking" option? Sorry I'm lost.
     
  9. The Forum Heroes

    The Forum Heroes Well-Known Member

    Gabby,

    Go into your config.php and add

    $config['enableClickjackingProtection'] = false;

    If you need more help, open a ticket with us and I'll be happy to add it for you
     

Share This Page