We are trying to determine whether it's possible to attempt to fetch a file/data from another domain (but trusted) via jQuery and determine whether the item was successfully fetched.
In other words via this method we would want to test whether the user has set up this site as a trusted site in their browser.
We did a test via img.src=[image on the 'another domain']
, but it always succeeded. i.e.
it didn't request authentication whether the trust was in place or not. So we are now looking for another solution / recommendation..
Thanks
You could use the following plugin - http://binarykitten.me.uk/dev/jq-plugins/88-jquery-plugin-ajax-head-request.html
you will get a status code of 200 if the user can access the site - ie they are authenticated. You will receive a status code of 401 if they are not
HTTP Status codes : http://w3.org/Protocols/rfc2616/rfc2616-sec10.html