chenzw2
V2EX  ›  问与答

apifox 网页版加个浏览器插件就可以实现跨域请求,浏览器插件里是怎么实现的呢?

  •  
  •   chenzw2 · Dec 1, 2023 · 2061 views
    This topic created in 1068 days ago, the information mentioned may be changed or developed.

    chrome 浏览器插件是怎么实现跨域转发的?有没有相关的 api 文档

    4 replies  •  2023-12-01 16:58:25 +08:00
    hedwi
    hedwi
    Dec 1, 2023
    1
    chrome 插件是调用浏览器接口发起请求 不存在跨域问题
    tool2d
    tool2d
    Dec 1, 2023
    2
    我的 github 上有,就是修改跨域头。

    https://github.com/tool2d/gitview/blob/main/background.js
    chenzw2
    chenzw2
    OP
    Dec 1, 2023
    4
    感谢各位大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:46 · PVG 09:46 · LAX 17:46 · JFK 20:46
    ♥ Do have faith in what you're doing.