Intercepting image load request of the browser

后端 未结 3 864
萌比男神i
萌比男神i 2021-01-17 23:43

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

3条回答
  •  失恋的感觉
    2021-01-18 00:03

    You can request the image using AJAX with the appropriate headers. Then you must base64 encode the image binary and insert it into the DOM by setting

    
    

提交回复
热议问题