title: Certifiction error from chrome browser using ReactJS
body: <p>i am trying to send an https request from my frontend (reactjs) to backend (nodejs/express).</p>
  <p>These two both run in localhost.</p>
  <p>Back end server code:</p>
  <pre><code>    const app = require('./app')
      const https = require('https');
      const fs = require('fs');
      
      const credentials = {
        key: fs.readFileSync('key.pem'),
        cert: fs.readFileSync('cert.pem')
      };
      
      //connect to the database
      require('./db')
      
      const port = 8765;
      
      app.get('/', (req, res) =&gt; {
         res.send('Now using https..');
      });
      
      var server = https.createServer(credentials, app);
      
      //var server = https.createServer(app);
      
      // listen for requests
      server.listen(port, () =&gt; {
        console.log(&quot;server starting on port : &quot; + port)
      });
  
  front end request:
  
      const {data: Sessions}= await axios.get(&quot;https://localhost:8765/...&quot;);
  
  i am trying to send an https request from my frontend (reactjs) to backend (nodejs/express).
  
  These two both run in localhost.
  
  Back end server code:
  
  const app = require('./app')
  const https = require('https');
  const fs = require('fs');
  
  const credentials = {
    key: fs.readFileSync('key.pem'),
    cert: fs.readFileSync('cert.pem')
  };
  
  //connect to the database
  require('./db')
  
  const port = 8765;
  
  app.get('/', (req, res) =&gt; {
     res.send('Now using https..');
  });
  
  var server = https.createServer(credentials, app);
  
  //var server = https.createServer(app);
  
  // listen for requests
  server.listen(port, () =&gt; {
    console.log(&quot;server starting on port : &quot; + port)
  });
  </code></pre>
  <p>front end request:</p>
  <p>const {data: Sessions}= await axios.get(&quot;https://localhost:8765/...&quot;);</p>
  <p>doing this request from postman with the exact same parameters produces the desired result.However when i try to do this from frontend i get: <code>GET https://localhost:8765/... net::ERR_CERT_AUTHORITY_INVALID</code> in react chrome extention.I believe this is because i am using a self signed certificate and chrome browser can't verify it's validity.</p>
  <p>Is there a way to temporarily disable this verification step from chrome?</p>
  <p>If not how else can i solve this?</p>
  <p>Not : Doing this with HTTP works fine but i need it to be HTTPS.</p>