• 请不要在回答技术问题时复制粘贴 AI 生成的内容
edis0n0
V2EX  ›  程序员

不自己用 fetch 发请求,有办法在 img 标签引入图片的时候往 GET 请求头里加东西吗

  •  
  •   edis0n0 · Dec 16, 2022 · 1913 views
    This topic created in 1430 days ago, the information mentioned may be changed or developed.
    6 replies  •  2022-12-16 21:30:41 +08:00
    cydian
    cydian
    Dec 16, 2022
    1
    没有
    hazardous
    hazardous
    Dec 16, 2022
    2
    用 cookie
    estk
    estk
    Dec 16, 2022 via iPhone
    3
    除了 cookie 貌似想不出来了,干嘛不用 fetch 或者 xhr ?服务器检测不出你用的是什么方式
    lisongeee
    lisongeee
    Dec 16, 2022
    4
    Service Worker
    edis0n0
    edis0n0
    OP
    Dec 16, 2022
    5
    @estk #3 因为用起来麻烦
    @lisongeee #4 有具体的文档么
    lisongeee
    lisongeee
    Dec 16, 2022❤️1
    6
    @edis0n0

    > 有具体的文档么

    [service worker intercept request]( https://www.google.com/search?q=service+worker+intercept+request)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:14 · PVG 05:14 · LAX 13:14 · JFK 16:14
    ♥ Do have faith in what you're doing.