From 60010628b4c00398c11498a1516f3f73004eaa1a Mon Sep 17 00:00:00 2001 From: Max Poshusta Date: Fri, 16 Apr 2021 06:06:27 -0500 Subject: [PATCH] Fixing issue where the ajaxHeaders were not being set for image requests --- src/viewer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 57b16e4f..ba3c1e2a 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2373,7 +2373,8 @@ function getTileSourceImplementation( viewer, tileSource, imgOptions, successCal crossOriginPolicy: imgOptions.crossOriginPolicy !== undefined ? imgOptions.crossOriginPolicy : viewer.crossOriginPolicy, ajaxWithCredentials: viewer.ajaxWithCredentials, - ajaxHeaders: viewer.ajaxHeaders, + ajaxHeaders: imgOptions.ajaxHeaders ? + imgOptions.ajaxHeaders : viewer.ajaxHeaders, useCanvas: viewer.useCanvas, success: function( event ) { successCallback( event.tileSource );