V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
edis0n0
V2EX  ›  程序员

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

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

    > 有具体的文档么

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