Read the statement by Michael Teeuw here.
MM v2.1 update with iframe
-
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. -
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.
-
I’ve sovled it.
You have to edit /MagicMirror/node_modules/frameguard$/index.js and comment the line
“// res.setHeader(‘X-Frame-Options’, directive)” -
@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:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login