You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Openseadragon makes no attempts to provide credentials when requesting images from Cantaloupe. If files on Drupal are properly restricted, then even when going to a page as admin, you'll get a 403 in the Openseadragon viewer. Drupal is requiring its JWT token in the Authorization header from the AJAX request that Openseadragon sends.
This can be accomplished in two parts:
Adding the Authorization header to the AJAX request by properly configuring the Openseadragon viewer
Adding a delegate script to Cantaloupe that passes along the Authorization header so it's available to the HttpSource
The text was updated successfully, but these errors were encountered:
Nice! We've worked around it by simply adding a context condition that only uses the OpenSeadragon viewer when the media is accessible by Anon, but getting it to work with authenticated users is the right way.
Currently, Openseadragon makes no attempts to provide credentials when requesting images from Cantaloupe. If files on Drupal are properly restricted, then even when going to a page as admin, you'll get a 403 in the Openseadragon viewer. Drupal is requiring its JWT token in the
Authorization
header from the AJAX request that Openseadragon sends.This can be accomplished in two parts:
Authorization
header to the AJAX request by properly configuring the Openseadragon viewerAuthorization
header so it's available to theHttpSource
The text was updated successfully, but these errors were encountered: