granthnk / hoverzoom

Automatically exported from code.google.com/p/hoverzoom
0 stars 0 forks source link

Not working on site that check the HTTP header #261

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I try to write a plugin to a site that check the HTTP header before
it respond the image, and hoverzoom doesn't work quick well.

the problem is the code in hoverzoom.js that assign the imge url
directly 

data.hoverZoomSrc = 'http://site.com/sompicture.jpg'

the problem it the site response HTTP 401/forbidden and not the image itself 
because the header contain a REFERER url.

It that possible to make hoverZoomSrc to load via a ajaxRequest instead of a 
direct image URL so that I can change the header when
use ajaxRequest method.

many site even require a cookie before respond the image else
you also get HTTP 401/forbidden .....

Original issue reported on code.google.com by ca_...@yahoo.se on 29 May 2012 at 2:18