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

http request

Scheduled Pinned Locked Moved Development
53 Posts 7 Posters 46.3k Views 6 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.
  • A Offline
    acdacd2
    last edited by Jun 24, 2016, 9:58 PM

    I have the same message with my environment.
    In a browse it’s ok

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by Jun 24, 2016, 10:01 PM

      Right, I have not tested this on an actual rpi … I’m at the office, so I’m running a serveronly setup. I can do an rpi test later, although I suspect it will still work, as opposed to resulting in a blank screen. It returns the error as expected when it can’t find the file.

      A Life? Cool! Where can I download one of those from?

      1 Reply Last reply Reply Quote 0
      • A Offline
        acdacd2
        last edited by Jun 24, 2016, 10:04 PM

        with a browser on the pi, it’s also ok

        1 Reply Last reply Reply Quote 0
        • E Offline
          Eunanibus Module Developer
          last edited by Jun 24, 2016, 11:24 PM

          @KirAsh4 I’ve isolated the issue as a Cross-Domain Access issue. Do you know of any particular way to make XMLHTTPRequests to external domains?

          I wasn’t aware this would be an issue but apparently anybody who wants to use this and map to an external domain will have this issue unless they have a running PHP server that can store the XML results locally (or if they can access a server, they can add the line Access-Control-Allow-Origin: * to their HTML headers.

          Any ideas?

          1 Reply Last reply Reply Quote 0
          • K Offline
            KirAsh4 Moderator
            last edited by Jun 24, 2016, 11:50 PM

            XMLHTTPRequest. Look at how the 'currentweather' module does it in the 'updateWeather()' function.

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • E Offline
              Eunanibus Module Developer
              last edited by Jun 25, 2016, 2:56 AM

              Yeah that’s what I based my original request functionality on. The OpenWeather API response is CORS compatible due to the response header - this is why the example response works well. Outside of this domain though (say on http://www.w3schools.com/xml/cd_catalog.xml (or any other external server). This unfortunately makes problems - I’m still looking for a work-around.

              1 Reply Last reply Reply Quote 0
              • K Offline
                KirAsh4 Moderator
                last edited by Jun 25, 2016, 5:15 AM

                Welcome to Javascript security issues.

                A Life? Cool! Where can I download one of those from?

                A 1 Reply Last reply Jun 25, 2016, 6:39 AM Reply Quote 0
                • A Offline
                  acdacd2 @KirAsh4
                  last edited by Jun 25, 2016, 6:39 AM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    acdacd2
                    last edited by Jun 25, 2016, 6:44 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      acdacd2
                      last edited by Jun 25, 2016, 6:57 AM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 4 / 6
                      4 / 6
                      • First post
                        33/53
                        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