I am trying to set up a ChilliController.js. I think i have connected coova-chilli. He redirects me, everything if fine. But, the request back from the site to the router does not go througn, here is the code:
document.getElementById("loginForm").addEventListener("submit", async (event) => {
event.preventDefault();
const urlParams = new URLSearchParams(window.location.search);
const username = document.getElementById("username").value;
const password = document.getElementById("password").value;
chilliController.host = urlParams.get('uamip');
chilliController.port = urlParams.get('uamport');
chilliController.interval = 60;
// chilliController.challenge = urlParams.get('challenge');
// chilliController.session = urlParams.get('sessionid');
// chilliController.redir = urlParams.get('userurl');
chilliController.onError = handleErrors;
chilliController.onUpdate = updateUI;
setTimeout(() => {
chilliController.logon(username, password);
}, 1000);
});
function updateUI(cmd) {
alert('You called the method' + cmd + '\n Your current state is =' + chilliController.clientState);
}
function handleErrors(code) {
alert('The last contact with the Controller failed. Error code =' + code);
}
chilliController.refresh();
I am trying to set up a ChilliController.js. I think i have connected coova-chilli. He redirects me, everything if fine. But, the request back from the site to the router does not go througn, here is the code:
I am get this Request URL: http://192.168.182.1:3990/json/status?callback=chilliJSON.reply&0.33341848012877806 Request Method: GET Status Code: 302 Moved Temporarily Remote Address: 192.168.182.1:3990 Referrer Policy: strict-origin-when-cross-origin
alert: JSON request timed out (or reply is not valid)
What am i doing wrong? I can assure you that username and password are correct.
Coova-chilli settings: