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

Trading module

Scheduled Pinned Locked Moved Requests
25 Posts 4 Posters 14.2k 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.
  • A Offline
    alexyak @plumcraft
    last edited by Aug 17, 2016, 7:30 PM

    @plumcraft could you please try the following:

    Update the electron.js (it’s in the \js\ folder). Instead of:

    mainWindow = new BrowserWindow({width: 800, height: 600,  fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false}});
    

    Replace it with:

    mainWindow = new BrowserWindow({width: 800, height: 600,  fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false, webSecurity: false}});
    
    1 Reply Last reply Reply Quote 0
    • P Offline
      plumcraft
      last edited by Aug 17, 2016, 8:19 PM

      @alexyak,

      My bad Alexyak, it was working even if webSecurity was not set. It was an issue in my config.js, sorry for that.

      Your module is working only on the RPI, not inside a browser (webSecurity: false or true) but it’s not a big deal.

      I will try to find a solution

      A 1 Reply Last reply Aug 17, 2016, 9:26 PM Reply Quote 0
      • A Offline
        alexyak @plumcraft
        last edited by Aug 17, 2016, 9:26 PM

        @plumcraft the webSecurity flag will only work for running in the electron on RPI. Which web browser are you trying to run it in? It works for me for chrome and safari.

        1 Reply Last reply Reply Quote 0
        • P Offline
          plumcraft
          last edited by Aug 18, 2016, 6:39 AM

          @alexyak I’m using Google Chrome, does not work on Safari either.

          A 1 Reply Last reply Aug 18, 2016, 3:42 PM Reply Quote 0
          • A Offline
            alexyak @plumcraft
            last edited by Aug 18, 2016, 3:42 PM

            @plumcraft could you please make sure that you pulled the latest version of the MM from github?

            1 Reply Last reply Reply Quote 0
            • P Offline
              plumcraft
              last edited by plumcraft Aug 18, 2016, 4:39 PM Aug 18, 2016, 4:39 PM

              @alexyak Just tried it, i’m having the same issue :(

              A 1 Reply Last reply Aug 18, 2016, 10:24 PM Reply Quote 0
              • M Offline
                MichMich Admin
                last edited by MichMich Aug 18, 2016, 7:42 PM Aug 18, 2016, 7:42 PM

                To prevent these kind of issues (and improve security) I suggest all cross server calls are done in the node helper. (That’s what the node helper is for)

                A 1 Reply Last reply Aug 18, 2016, 9:36 PM Reply Quote 0
                • A Offline
                  alexyak @MichMich
                  last edited by Aug 18, 2016, 9:36 PM

                  @MichMich as a rule of thumb yes, but there could be exceptions :)

                  M 1 Reply Last reply Aug 23, 2016, 5:53 PM Reply Quote 0
                  • A Offline
                    alexyak @plumcraft
                    last edited by Aug 18, 2016, 10:24 PM

                    @plumcraft I’ve updated the module to move the data request to the node_helper which means it should fix your CORS related error.
                    Just pull the latest.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      plumcraft
                      last edited by Aug 18, 2016, 10:34 PM

                      @alexyak thanks, it works for me now :)

                      A 1 Reply Last reply Aug 19, 2016, 2:29 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        18/25
                        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