This is a migrated thread and some comments may be shown as answers.

Security causing thumbs not to load in image browser

0 Answers 18 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Uriah
Top achievements
Rank 1
Uriah asked on 18 Aug 2013, 07:59 PM
I have a ASP.NET WebAPI endpoint that is receiving the calls for upload and it appears to be working fine in that the file is uploaded and it returns appropriate JSON.  It is however secured using windows authentication which seems to be causing a problem with loading the thumbnails.  What seems to be happening is that the initial call to the upload endpoint returns a 401 which causes the client to resend the request with the authorization cookie.  It seems that in between those two calls the tiles get updated and an img for the thumb is created even though the thumb hasn't been created on the server yet.  This causes the thumb not to load and it won't even try to load again until the browser is refreshed.  

Without security everything seems to go fine unfortunately the windows auth is a requirement of this application.  Is there a way to force the initial request to
include the auth token or is there a way to delay the reloading of the tiles/images until the second call is complete?  Seems to be mostly working great other than this issue.

Thanks,
Uriah

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Uriah
Top achievements
Rank 1
Share this question
or