Intercepting image load request of the browser?

No, there is not a way to do that, and it's a very good thing too (Well, there's no way to do it from your code. The browser owner can install a tool that alters requests if they so desire, of course. ) The fact that browsers issue HTTP requests for scripts and images in their own strict ways means that a site using XHR can prevent some kinds of CSRF attacks (cross-site request forgery) by having the server refuse certain requests if they don't include a special header that the site's own XHR code adds You can't control exactly what a browser does to the header with form posts, either.

No, there is not a way to do that, and it's a very good thing too. (Well, there's no way to do it from your code. The browser owner can install a tool that alters requests if they so desire, of course.) The fact that browsers issue HTTP requests for scripts and images in their own strict ways means that a site using XHR can prevent some kinds of CSRF attacks (cross-site request forgery) by having the server refuse certain requests if they don't include a special header that the site's own XHR code adds.

You can't control exactly what a browser does to the header with form posts, either.

I would like to know if there is a way to intercept the image loading requests of a browser and add some request headers expected by the server. The actual scenario is this. The web app sends an XHR to the server and completes an authentication handshake.

All the subsequent requests have to include the auth header. The images are broken because the browser does not send the headers for the image requests. Thanks in advance.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions