1
0
Fork 0
mirror of https://github.com/openseadragon/openseadragon.git synced 2025-04-03 13:53:31 +03:00

Merge pull request 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 );