From 834ed6ede5d35d8a06ddcc51d216b3e2453da65a Mon Sep 17 00:00:00 2001 From: eug-L Date: Tue, 4 Jun 2024 15:24:56 +0800 Subject: [PATCH 1/2] fix ajax headers not propagated to navigator --- src/viewer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index 5431626f..d4e762be 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -515,6 +515,8 @@ $.Viewer = function( options ) { crossOriginPolicy: this.crossOriginPolicy, animationTime: this.animationTime, drawer: this.drawer.getType(), + loadTilesWithAjax: this.loadTilesWithAjax, + ajaxHeaders: this.ajaxHeaders, }); } From 35d468c4db81013cad396c720f8e44211356f60f Mon Sep 17 00:00:00 2001 From: eug-L Date: Sun, 9 Jun 2024 20:52:37 +0800 Subject: [PATCH 2/2] propagate ajaxWithCredentials to navigator --- src/viewer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewer.js b/src/viewer.js index d4e762be..9da4cd9f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -517,6 +517,7 @@ $.Viewer = function( options ) { drawer: this.drawer.getType(), loadTilesWithAjax: this.loadTilesWithAjax, ajaxHeaders: this.ajaxHeaders, + ajaxWithCredentials: this.ajaxWithCredentials, }); }