Merge pull request #1968 from maxshuty/master

Fixing issue where the `ajaxHeaders` are not being set for image requests
This commit is contained in:
Ian Gilman 2021-04-19 11:28:22 -07:00 committed by GitHub
commit 16a255ae33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 );