Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, September 13, 2018 9:39:00 AM(UTC)
Marcio Costa

Groups: Registered
Posts: 2


print2.PNGprint1.PNG

I'm trying to use lt.Document.DocumentFactory.prepareAjax to add the "Authentication: Bearer" statement to the AJAX request header.
However, it works for the endpoint /GetAnnotations, but does not work for the endpoints /GetThumbnailsGrid and /GetImage.

I am using LeadTools v20, HTML/JS and RESTful services.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, September 13, 2018 2:01:16 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 27 time(s) in 27 post(s)

Hello Marcio,

From my testing, it appears by default only POST requests are intercepted. This includes requests like GetAnnotations, or LoadFromUri. To intercept all requests with the prepareAjax event, you'll simply need to enable Ajax image loading on the DocumentViewer:
https://www.leadtools.com/help/leadtools/v20/dh/javascript/doxui/documentviewer-useajaximageloading.html

Thanks,
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Thursday, September 13, 2018 4:01:46 PM(UTC)
Marcio Costa

Groups: Registered
Posts: 2


This worked. Thanks for help.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.060 seconds.