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.
In Chrome, visit a URL(such as https://www.google.com ), right click, select Inspect to open the developer tools. Select Network tab. Reload the page, select any HTTP request on the left panel, and the HTTP headers will be displayed on the right panel.
Unfortunately for you, there's no way to hide network requests from Chrome Network Log. Even if you could, it'd be still possible to use network analyzer tools such as Fiddler and Wireshark to log all the traffic between your computer and the Internet.
From the Android Studio navigation bar, select View > Tool Windows > App Inspection. After the app inspection window automatically connects to an app process, select Network Inspector from the tabs.
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
.
Before:
After:
You can read more about filtering in the Network panel here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With