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

John Smith picture John Smith · Feb 23, 2016 · Viewed 19.8k times · Source

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 ?

Answer

Rick Hanlon II picture Rick Hanlon II · Aug 31, 2016

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

enter image description here

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.