Am using handlebars and doing a basic form GET to createnewpassword.hbs as below but am getting net::ERR_CONNECTION_RESET error in browser and fails to load the page. Am really stuck with this. Please suggest some pointers or any help will be appreciated.
form1.hbs
<form name="form1" id="form1" action="/forgotpassword/createnewPassword" method="GET" >
<input type="hidden" name="tk" id="tk" value="123456">
<input type="submit" name="submitVals" / >
</form>
And am listening the route on the nodejs like
app.js
app.get('/forgotpassword/createnewpassword', function(req,res){
var context = {
appTitle : "create new password"
}
res.render('/filepath/createnewpassword' , context);
});
If you run into the “ERR_CONNECTION_RESET” error, it means that your browser can't establish a connection to the remote server. In most cases, it's due to a misconfiguration in your internet settings or something else that's blocking the connection.
This is a cookie problem and most often seen with chrome users
Go to Chrome settings > Privacy > Content Settings > Cookie > All cookie and Site Data > Delete domain problem
OR
Right Click > Inspect Element > Tab Resources > Cookie (Left Menu) > Select domain > Delete All cookie One By One (Right Menu)
refer here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With