In multi-server when viewing an event it may be coming from a different server than the serverhost. Use monitorUrl instead of thisUrl in ajax calls and include auth data. Fixes failed ajax when viewing h264 using zms on a multi-server environment

This commit is contained in:
Isaac Connor 2021-11-11 13:58:52 -05:00
parent 883772295d
commit a0215067e4
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ function streamReq(data) {
data.view = 'request';
data.request = 'stream';
$j.getJSON(thisUrl, data)
$j.getJSON(monitorUrl, data)
.done(getCmdResponse)
.fail(logAjaxFail);
}
@ -657,6 +657,7 @@ function getFrameResponse(respObj, respText) {
function frameQuery(eventId, frameId, loadImage) {
var data = {};
if (auth_hash) data.auth = auth_hash;
data.loopback = loadImage;
data.id = {eventId, frameId};