2 Star 5 Fork 0

Jerry K / ajax-proxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Ajax Proxy


一款基于Chromium内核的浏览器插件 · 面向开发者的工具 · 用于Web端接口数据的修改

GitHub chrome web store chrome rating edge addons edge users

English | 中文

适用场景

  • 当实际数据无法达到预期结果时,需要进行 Mock 数据处理。
  • 在开发或生产阶段,需要验证异常场景或临界值。
  • 开发阶段数据频繁变更,导致页面无法正常联调时。
  • 某个接口返回 404 错误时。

安装

Edge 版本

Chrome 版本

效果展示

视频: https://www.bilibili.com/video/BV1KB4y1j7Gm

operation.gif

zhihu

视频介绍

常见问题

  1. 数据拦截不起作用
    • 方法 1: 可以通过切换 interceptorredirector 来刷新 Ajax 引用问题 issues_checked
    • 方法 2: 可以在开发者工具中的网络(network)里面,通过 ☑️ 禁用缓存 issues_disabled_cache
  2. 函数方式响应说明

Monorepo

Package Description
@proxy/compatibility 老数据兼容库
@proxy/lib 操作 Ajax 核心逻辑库
@proxy/shared-utils 通用类库
@proxy/shell-chrome 浏览器扩展库
@proxy/vue-panels 应用操作面板

源码使用方式

  1. 下载对应版本的 Source code 解压
  2. 浏览器打开 开发者模式
  3. 加载解压后的文件夹

测试用例

下载 Interceptor.test.json

分别使用在 掘金 首页、百度翻译 两个网站测试

  1. 掘金: 直接在首页查看效果;
  2. 百度翻译: 随便翻译点内容即可;
  3. 也可以直接在Swagger中测试

⭐ Stargazers

感谢支持!

Stargazers for ajax-proxy

License

Ajax Proxy is MIT licensed.

MIT License Copyright (c) 2021 Gj Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

💡 Chromium内核的浏览器扩展。用于修改你的Ajax响应 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/g0ngjie/ajax-proxy.git
git@gitee.com:g0ngjie/ajax-proxy.git
g0ngjie
ajax-proxy
ajax-proxy
master

搜索帮助