I have a few
‘s that are linked (with the
attribute) to cross-domain URLS that may need to redirect to some other image URL. I need to somehow track every redirect that takes place when the browser requests the original URL.
So for example, If I have:
sent a custom
, I need to know about it. How could I detect a redirect in JS or jQuery on a
If you’re not constrained to IE7 you could use a cors solution. That will let you request cross-domain without the limitations of JSON-P (i.e. you can get status codes).
for more information. For a simple GET request you should be fine, but if you need to POST then you may need to preflight your request.