I built an application with express of node.js.
const express = require('express'); // servidor de desenvolvimento
const app = express();
app.listen(3000, () => {
console.log(`http://localhost:3000`);
});
when I run the server and try access it with https://my_local_IP:port
in browser I get ERR_SSL_PROTOCOL_ERROR
, but if I use https://my_local_IP:port
it works.
How do I make the app to listen in on http port, even to requests in https port?