WIP debug https AJAX