Changing the http referer in javascript

后端 未结 1 762
失恋的感觉
失恋的感觉 2020-12-18 05:12

I have an image

. when the image loads, is there a way to change the http referer to X so that the src host see
相关标签:
1条回答
  • 2020-12-18 05:48

    It's not possible to change the referrer of an image request load but is possible to remove the referrer.

    There is a cross browser solution in Javascript, it uses Iframes created dynamically, check a proof of concept ( disclaimer: It uses a little JS lib I coded for that purpose).

    0 讨论(0)
提交回复
热议问题