How to filter (hide) Pre-flight requests on my Dev Tools Network

限于喜欢 提交于 2020-06-23 22:10:59

问题


Normally both calls are shown, the pre-flight and the actual request. This is sometimes annoying. Is there a way to hide the pre-flights requests ?

Or is there a plugin to filter certain requests based on headers ?


回答1:


The quickest way to do this is to filter on -method:OPTIONS.

Explanation: all pre-flight requests are via the HTTP OPTIONS method (opposed to POST or GET). This filter says "not method OPTIONS".

Note the leading hyphen because if you forget it, you'll only show pre-flight requests.



来源:https://stackoverflow.com/questions/35567580/how-to-filter-hide-pre-flight-requests-on-my-dev-tools-network

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