title: Node server web app don't want to run on mobile device with mobile data, It's hosted to VPS
body: <br>
  I have a problem with my Vue.js website.It's a vue with node express frontend, and another node express on a different port as backend.<br><br>
  It works fine on a desktop, also on a mobile device, but on mobile when I turn off the wifi and try to reload the website with the mobile data, it does not load.Even stranger is the fact that I tried on many mobile devices, and 1/3 of them has no this problem (and the devices are different, iphone, android, with chrome, with safary)<br><br>
  And last, during this phenomenon, when I try to access the rest apis of the backend, everything works fine there. All the backend and the frontend are hosted on a VPS server.
  <br><br>
  My web app<br>
  <a href="https://conndesk.com/" rel="nofollow noreferrer">https://conndesk.com/</a><br><br>
  <p>The response headers that I am using.</p>
  <pre><code>res.header(&quot;Access-Control-Allow-Origin&quot;, &quot;*&quot;);
  res.header(&quot;Access-Control-Allow-Credentials&quot;, true);
  res.header(&quot;Access-Control-Allow-Methods&quot;, &quot;GET,HEAD,OPTIONS,POST,PUT&quot;);
  res.header(&quot;Access-Control-Allow-Headers&quot;, &quot;Origin, X-Requested-With, Content-Type, Accept, Authorization&quot;);
  </code></pre>
  <p>My config file for connection with the back-end</p>
  <pre><code>{
      &quot;ip&quot;: &quot;46.101.12.218&quot;,
      &quot;api&quot;: &quot;https://conndesk.com:444&quot;,
      &quot;files&quot;: &quot;https://conndesk.com:444&quot;,
      &quot;domainName&quot;: &quot;conndesk.com&quot;
  }
  </code></pre>
  <p>New update !!!  I tried this and it does the same, with wifi works but at mobile data don't. There is no vue.js or express.js. When I change the ports to something different from the default ones, works nice at both mobile data and wifi. It looks like it's a server problem , not Vue js</p>
  <pre><code>const https = require(&quot;https&quot;),
      http = require(&quot;http&quot;),
      { readFileSync } = require(&quot;fs&quot;),
      sslPort = 443,
      port = 80;
  
  var https_server = (req, res, next) =&gt; {
      return res.end(&quot;aaaaaaaaaaaaa&quot;);
  };
  
  var http_server = (req, res, next) =&gt; {
      return res.end(&quot;bbbbbbbbbbbbb&quot;);
  };
  
  /** HTTPS */
  https
      .createServer(
          {
              key: readFileSync(&quot;/etc/letsencrypt/live/privkey.pem&quot;, &quot;utf8&quot;),
              cert: readFileSync(&quot;/etc/letsencrypt/live/fullchain.pem&quot;, &quot;utf8&quot;),
          },
          https_server
      )
      .listen(sslPort, () =&gt; {
          console.log(`Server is running at port ${sslPort}...`);
      });
  
  /** HTTP */
  http.createServer(http_server).listen(port, () =&gt; {
      console.log(`Server is running at port ${port}...`);
  });
  </code></pre>
  <p>Thank you very much!</p>