Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to filter options requests in chrome inspector?

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.

like image 667
user3518753 Avatar asked Aug 31 '16 13:08

user3518753


People also ask

How do I see Chrome requests?

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.

How do you hide the XHR requests from the Network tab in the browser?

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.

How do I find Network requests?

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.


1 Answers

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: Before

After: After

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

like image 188
Gideon Pyzer Avatar answered Oct 11 '22 00:10

Gideon Pyzer