Security causing thumbs not to load in image browser

1 posts, 0 answers
  1. Uriah
    Uriah avatar
    1 posts
    Member since:
    Apr 2013

    Posted 18 Aug 2013 Link to this post

    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.

Back to Top