Is it possible to filter options requests in chrome inspector?

社会主义新天地 提交于 2019-12-03 06:11:35

问题


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

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.


回答1:


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.

Example

Before:

After:

You can read more about filtering in the Network panel here.



来源:https://stackoverflow.com/questions/39251291/is-it-possible-to-filter-options-requests-in-chrome-inspector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!