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.

    Trying to reuse an auth cookie from Chromium with Electron

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 559 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.
    • J Offline
      Jfarro
      last edited by

      I have a scenario I’m trying to enable, and wondering if anyone here can help.

      I have a grafana chart from home assistant that has auth on it (and I’d like to keep auth on it if I can). I am trying to bring it into magic mirror via iframe, and when I browse to the IP from a browser on another machine it looks and works great (that I’ve authenticated into due to cookies). On my magic mirror however, even if I launch the site in Chromium on a raspberry pi, I don’t see the content. I’m suspecting it’s a 401 in the iframe and I’m just not seeing it.

      What I’d like to do is either get electron to use the cookies that Chromium set, or to possibly switch to Chromium entirely for the ‘shell’. Or any other solution where I can somehow get this to work. Any ideas? If someone wants more explanation I can break more things down, but I think if someone has tried to iframe an authenticated site this may make sense right off (I imagine if I tried say facebook or even this forum in an iframe I’d hit the similar issue)

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @Jfarro
        last edited by

        @Jfarro what mm version are u running? And how did u install?

        If the package.json says

        "start","./run-start.sh",
        

        Then add to config.js

        serverOnly:"local",
        

        After the address: line, and before modules: line
        This will start mm by using chromium browser instead of electron.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        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