<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Node-helper Access-Control-Allow-Origin]]></title><description><![CDATA[<p dir="auto">Hello, I get always this error “CORS-Kopfzeile ‘Access-Control-Allow-Origin’ fehlt)”</p>
<p dir="auto">how is it possible the manage the node-helper.js to solved this error?</p>
<p dir="auto">the node-helper.js:</p>
<pre><code>const NodeHelper = require("node_helper");
const https = require("https");
const express = require("express");
const app = express();
const cors = require('cors');

module.exports = NodeHelper.create({
  start: function () {
    console.log("MMM-Cryptocurrency loaded!");
  },

  socketNotificationReceived: function (notification, payload) {
    if (notification === "get_ticker") {
      this.getTickers(payload);
    }
  },

  getTickers: function (payload) {
    var self = this;
    https
      .get(payload.url, (res) =&gt; {
        let data = "";
        res.on("data", (chunk) =&gt; {
          data = data + chunk.toString();
        });
        res.on("end", () =&gt; {
          self.sendSocketNotification("got_result", { id: payload.id, data: JSON.parse(data) });
        });
      })
      .on("error", (err) =&gt; {
        console.log("MMM-Cryptocurrency error: ", err.message);
      });
  }
});

</code></pre>
<p dir="auto">thanks guys</p>
]]></description><link>https://forum.magicmirror.builders/topic/16384/node-helper-access-control-allow-origin</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 01:32:12 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16384.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Feb 2022 20:18:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Node-helper Access-Control-Allow-Origin on Sun, 20 Feb 2022 13:57:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fischi87" aria-label="Profile: fischi87">@<bdi>fischi87</bdi></a> yes, but I don’t know how</p>
]]></description><link>https://forum.magicmirror.builders/post/99781</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99781</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 20 Feb 2022 13:57:15 GMT</pubDate></item><item><title><![CDATA[Reply to Node-helper Access-Control-Allow-Origin on Sun, 20 Feb 2022 09:21:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">ist still dosent work, a other idea? how is it possible to write it in this node_helper.js?</p>
]]></description><link>https://forum.magicmirror.builders/post/99770</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99770</guid><dc:creator><![CDATA[fischi87]]></dc:creator><pubDate>Sun, 20 Feb 2022 09:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Node-helper Access-Control-Allow-Origin on Sat, 19 Feb 2022 22:17:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fischi87" aria-label="Profile: fischi87">@<bdi>fischi87</bdi></a> so?  same instructions work today.  I don’t have to type them again</p>
]]></description><link>https://forum.magicmirror.builders/post/99765</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99765</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 19 Feb 2022 22:17:33 GMT</pubDate></item><item><title><![CDATA[Reply to Node-helper Access-Control-Allow-Origin on Sat, 19 Feb 2022 21:26:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">this post ist more than 1 Jahr ago !</p>
]]></description><link>https://forum.magicmirror.builders/post/99764</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99764</guid><dc:creator><![CDATA[fischi87]]></dc:creator><pubDate>Sat, 19 Feb 2022 21:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Node-helper Access-Control-Allow-Origin on Sat, 19 Feb 2022 20:58:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fischi87" aria-label="Profile: fischi87">@<bdi>fischi87</bdi></a> there is a new mm service to help get around this  coming in next release.</p>
<p dir="auto">it’s in the develop branch now.</p>
<p dir="auto">see this on how to get develop</p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code">https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code</a></p>
<p dir="auto">see here for the new feature<br />
<a href="https://github.com/MichMich/MagicMirror/issues/2714#issuecomment-1024627426" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/issues/2714#issuecomment-1024627426</a></p>
]]></description><link>https://forum.magicmirror.builders/post/99763</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99763</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 19 Feb 2022 20:58:25 GMT</pubDate></item></channel></rss>