Skip to content
Snippets Groups Projects
Commit c1cea5e4 authored by Brett Popowycz (bwp265)'s avatar Brett Popowycz (bwp265)
Browse files

removed all https

parent 86a15ecf
Branches workingForBrett
No related tags found
1 merge request!5Removed https
......@@ -163,17 +163,17 @@ app.get('/', (req, res) => {
console.log(req.session);
//res.redirect("http://localhost:3000/");
//res.send("Hey");
res.redirect("https://localhost:3000/register");
res.redirect("http://localhost:3000");
});
app.use('/', express.static('pages'));
//FIXME: HTTPS server giving Error code: SSL_ERROR_RX_RECORD_TOO_LONG on firefox
//Create the Http server
http.createServer(app).listen(PORT, HOST);
//Create the identical https server
https.createServer(options, app).listen(443, HOST);
// //Create the Http server
// http.createServer(app).listen(PORT, HOST);
// //Create the identical https server
// https.createServer(options, app).listen(443, HOST);
//app.listen(PORT, HOST);
app.listen(PORT, HOST);
console.log('up and running');
\ No newline at end of file
......@@ -25,7 +25,7 @@ const handleSubmitClick = (e) => { //handle submit event.
body : JSON.stringify({username : e.target.ID.value, password : e.target.password.value})
};
fetch('https://localhost:443/login', requestOptions)
fetch('http://localhost:443/login', requestOptions)
.then((response) => {
console.log(response)
});
......
......@@ -28,7 +28,7 @@ const handleSubmitClick = (e) => { //handle submit event.
body : JSON.stringify(body)
};
fetch('https://localhost:443/register', requestOptions)
fetch('http://localhost:443/register', requestOptions)
.then((result) => {
console.log(result);
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment