title: Getting Started With PeerJS
body: <p>I am trying the simplest example I can, pulled directly from their website.  Here is my entire html file, with code taken exactly from <a href="https://peerjs.com/index.html" rel="noreferrer">https://peerjs.com/index.html</a>:</p>
  <pre><code>&lt;script src=&quot;https://unpkg.com/peerjs@1.3.1/dist/peerjs.min.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
      var peer = new Peer();
      var conn = peer.connect('another-peers-id');
      // on open will be launch when you successfully connect to PeerServer
      conn.on('open', function(){
      // here you have conn.id
          conn.send('hi!');
      });
  &lt;/script&gt;
  </code></pre>
  <p>In Chrome and Edge I get this in the console:</p>
  <pre><code>peerjs.min.js:64 GET https://0.peerjs.com/peerjs/id?ts=15956160926060.016464029424720694 net::ERR_CONNECTION_REFUSED
  </code></pre>
  <p>In Firefox I get this:</p>
  <pre><code>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://0.peerjs.com/peerjs/id?ts=15956162489620.8436734374800061. (Reason: CORS request did not succeed).
  </code></pre>
  <p>What am I doing wrong?</p>
  <p>@reyad has requested &quot;a full trace of requests and responses&quot;.  Here's what I see in my network tab in Firefox:<a href="https://i.stack.imgur.com/H7otn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/H7otn.png" alt="Firefox Network Tab" /></a></p>
  <p>And here's Chrome:
  <a href="https://i.stack.imgur.com/W4bt2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/W4bt2.png" alt="Chrome Network Tab" /></a></p>
  <p>And a tiny bit more Chrome:
  <a href="https://i.stack.imgur.com/wvmos.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wvmos.png" alt="More Chrome" /></a></p>