是否可以在Chrome检查器中过滤选项请求? [英] Is it possible to filter options requests in chrome inspector?

查看:235
本文介绍了是否可以在Chrome检查器中过滤选项请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个使用CORS与服务器通信的Web应用程序.

I'm building a web application which uses CORS to communicate with it's server.

这意味着每个请求之前都带有一个使用OPTIONS方法的请求.

This means that every request is preceded by one with OPTIONS method.

是否可以在检查器中将其过滤掉?这会在网络"标签上造成许多不必要的混乱.

Is it possible to filter those out in inspector? It makes a lot of unnecessary clutter on network tab.

推荐答案

是的,您可以在网络"面板的过滤器中使用-method:OPTIONS来显示除类型为OPTIONS的方法之外的所有方法.如果省略前面的-,它将仅显示类型为OPTIONS的方法.

Yes, you can use -method:OPTIONS in the filter of the Network panel to show all methods apart from ones with type OPTIONS. If you omit the preceeding -, it will only show methods of type OPTIONS.

之前:

之后:

您可以在网络"面板中了解更多有关过滤的信息.这里.

这篇关于是否可以在Chrome检查器中过滤选项请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆