• 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.

Compliments with remote file doesnt work.

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 4 Posters 2.6k Views 3 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.
  • S Offline
    sdetweil @codac
    last edited by Oct 12, 2021, 12:52 PM

    @codac ok, the original post had the module source

    anyhow

    open the developers window on mm

    ctrl-shift-i

    select the tab labeled ‘console’ and add a unique part of the module name to the filter field

    compl

    for example

    see if there are any errors…

    if the module is able to get and parse the contents, it changes the defaults to the remote content

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • C Offline
      codac
      last edited by Oct 12, 2021, 1:16 PM

      @sdetweil yes indeed there is:
      Reason: CORS header ‘Access-Control-Allow-Origin’ missing

      S M ? 4 Replies Last reply Oct 12, 2021, 1:21 PM Reply Quote 0
      • S Offline
        sdetweil @codac
        last edited by Oct 12, 2021, 1:21 PM

        @codac what is the address: in the mm config

        if “localhost” try “0.0.0.0”

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Oct 12, 2021, 1:31 PM Reply Quote 0
        • C Offline
          codac @sdetweil
          last edited by Oct 12, 2021, 1:31 PM

          @sdetweil I’m using clientonly so on the client itself, the config wont have any affect, right? Furthermore on the server side there already is set 0.0.0.0

          S 1 Reply Last reply Oct 12, 2021, 1:36 PM Reply Quote 0
          • S Offline
            sdetweil @codac
            last edited by Oct 12, 2021, 1:36 PM

            @codac fun… yeh, client only , what are u using for the client? MM clientonly or chrome?

            if the former, I would try the latter

            this is what I use to start the chrome browser over server where electron doesn’t exist

            chromium  -noerrdialogs -kiosk -start_maximized  --disable-infobars --app=http://$server:$port  --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors 2>/dev/null
            

            do

            server=    mm server
            port=        mm server port
            

            then the command above in a terminal window to test

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              MMRIZE @codac
              last edited by Oct 12, 2021, 1:47 PM

              @codac
              Modern browser doesn’t allow cross-originated contents(code, data whatever) by default for security reason. I think there might be an option to turn it off(in browser or electron) I’m in out of my pc, so can’t test it by myself, but definitely exist, I know.

              1 Reply Last reply Reply Quote 0
              • M Offline
                MMRIZE @codac
                last edited by Oct 12, 2021, 1:53 PM

                @codac
                In chrome/chromium, it might be --disable-web-security flag on execution.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  codac
                  last edited by Oct 12, 2021, 1:58 PM

                  @mmrize and @sdetweil
                  Yeah, I’ve seen solutions using a htaccess file and

                  Access-Control-Allow-Origin: https://amazing.site
                  

                  as content.

                  Anyhow, I fixed it now placing the remote file on my server and not a remote web-server.
                  You can enter the local path and filename as stated here.

                  That worked for me.

                  S 1 Reply Last reply Oct 12, 2021, 2:00 PM Reply Quote 0
                  • S Offline
                    sdetweil @codac
                    last edited by Oct 12, 2021, 2:00 PM

                    @codac good…

                    htaccess is on the server side…

                    this error is server generated, client should NOT be able to 'get around ’ it

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @codac
                      last edited by Oct 12, 2021, 5:01 PM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        8/13
                        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