Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Don't jump out of the frame

    Scheduled Pinned Locked Moved webGUI
    3 Posts 2 Posters 2.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robi
      last edited by

      How can I make the webgui to stay inside a frame? If I include it to be a part of a management console, which is actually a framed setup, after login, pfSense's webgui jumps out of the frame.
      Any idea how to disable this?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It does that on purpose as a security measure. Though if you really want to do it, it can be changed.

        /usr/local/www/csrf/csrf-magic.php: * Set this to false if your site must work inside of frame/iframe elements,
        /usr/local/www/csrf/csrf-magic.php:$GLOBALS['csrf']['frame-breaker'] = true;

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          robi
          last edited by

          Thanks. I'll take the risk, as the web interface is only accessible on a private LAN and through VPN.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.