• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MM v2.1 update with iframe

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 2.0k Views 2 Watching
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.
  • G Offline
    gshimself
    last edited by Jan 2, 2017, 7:08 AM

    Hi. I just updated MM and it works pretty well. However…
    I have my MM in a Virtual Machine and have a own local website that acceess the MM with iframe, but can’t get it to work.

    I can access the MM through chrome direct IP but when it access through the website, it doesn’t work. I have whitelisted the whole network (192.168.X.X)
    im no pro at this so, any help will do.

    1 Reply Last reply Reply Quote 0
    • G Offline
      gshimself
      last edited by gshimself Jan 2, 2017, 8:29 AM Jan 2, 2017, 7:43 AM

      After some googlesearch I’ve discoverd that now you can’t iFrame MM in chrome due to X-frame-options on the page.
      Is there a way to bypass this through MM or is it just time to revert to MM 2.0 again?

      EDIT Narrowed it down to that I must change the X-Frame-Options in the MM… I think.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gshimself
        last edited by Jan 2, 2017, 9:23 AM

        I’ve sovled it.
        You have to edit /MagicMirror/node_modules/frameguard$/index.js and comment the line
        “// res.setHeader(‘X-Frame-Options’, directive)”

        ? 1 Reply Last reply Mar 25, 2020, 12:49 PM Reply Quote 0
        • ? Offline
          A Former User @gshimself
          last edited by Mar 25, 2020, 12:49 PM

          @gshimself
          Yes! I’ve been working on this for about 3 days now, and I never came across this page! Instantly solved my issue!

          One small change though. I commented out line: “res.setHeader(‘X-Frame-Options’, headerValue)”, in the file at: “/MagicMirror/node_modules/frameguard/dist/index.js”.

          Still it was your post that solved my issue.
          Thanks so much! :thumbs_up: :thumbs_up:

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy