-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能将线上的请求拦截吗 #36
Comments
@IEfucker 你可能对代理有误解。 |
@jaywcjlove 啊,那我这样做不行喽? |
@IEfucker 可以的,你可以运行下面这个例子。试一试。 mocker-api/example/webpack/mocker/index.js Lines 9 to 14 in d86465e
|
抱歉我好像没有把我的问题表述清楚 不知道是我配置错了,还是说mockapi只能用在localhost接口? |
@IEfucker 你对代理可能有误解,你直接访问API |
哦傻逼了 |
对于本地的请求能拦截,返回mock数据
对于线上地址,比如http://www.baidu.com/api/xxx/test
这样的接口不能使用mock代理吗
The text was updated successfully, but these errors were encountered: