Working on a NodeJs application and I'd like to trick the browser so that to keep http, latest version of the browser keep redirecting this to https.
I know that its not recommended but its only for PoC so no major issue having unsecured communication.
var port = 80;
server.listen(port, function () {
console.log('webapp: listening at port %d', port);
});
// Routing
const currentDirectory = path.join(__dirname, '../', 'webapp');
app
.get('/', applyTemplate('index.html'))
.get('/index.html', applyTemplate('index.html'))
.use(express.static(currentDirectory))
Can I trick the browser? To handle the https connection and redirect it to http without creating a ssl certificate.