chenzw2
V2EX  ›  问与答

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

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

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

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

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