I am not sure, but one thing I can say is that I don’t see a GET request being made to the ‘/facial-login-result/’ page in the terminal. Why is the request not being made?
I can say that even after commenting out everything else inside the JavaScript event listener, I am still not directed to the ‘facial-login-result’ page:
sendButton.addEventListener('click', function(e) {
// console.log(canvas.toDataURL());
// const link = document.createElement('a');
// link.download = 'SubmittedFacialImage.jpg';
// link.href = canvas.toDataURL();
// link.click();
// link.delete;
location = "{% url 'facial-login-result' %}";
// location.assign("{% url 'facial-login-result' %}");
});