Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Network Request does not show Cookies tab, some request headers, Copy as cURL is broken

Since I upgraded to Chrome 72 the "Cookies" tab in Developer Tools -> Network -> A network request no longer shows the "Cookies" tab, and the request headers no longer include Cookies.

Furthermore, right clicking on a network request and selecting Copy -> Copy as cURL gives a curl command without the proper request headers / cookies.

See screenshots comparing Chrome with Cookies tab / request headers, and Chrome without them.

It looks like this:

Chrome without cookies tab

like image 235
Erik Zivkovic Avatar asked Mar 29 '19 09:03

Erik Zivkovic


People also ask

How do I see requests on network tabs in Chrome?

To access this feature in Chrome, simply open the developer tools (command-option-I or command-option-J on a Mac) and select the Network option from the drop-down menu at the top. One last important thing to note: Chrome will only show Network requests that happen while the Network panel is open.

How do I view cookies on my network tab?

To check cookies in Chrome: Right-click and click on Inspect to open the developer console. Go to the Applications tab on the console. Expand the Cookies dropdown under the Storage section.

How do I read network requests in Chrome for new tab or popup window?

HttpWatch on Windows can record the network traffic generated when a new Chrome tab or window is opened by enabling auto-recording in Tools->Options->Recording. In the new window click on the HttpWatch icon to view the network trace.

How do you replicate a request from the Chrome network tab to the postman?

Open your DevTools, select the network call you are interested in, right-click on it, then hit Copy and finally Copy as cURL. It's time to open Postman. Hit the Import button, then Paste Raw Text, and finally paste your network call from above.


2 Answers

I filed a bug report on the chromium project, and got an answer to disable chrome://flags/#site-isolation-trial-opt-out and chrome://flags/#network-service.

However, chrome://flags/#site-isolation-trial-opt-out may affect things such as vulnerability to Spectre-like attacks. So I did not disable it.

I did disable chrome://flags/#network-service and now it works properly.

Now it looks like this:

Chrome with cookies tab

like image 61
Erik Zivkovic Avatar answered Oct 23 '22 11:10

Erik Zivkovic


Chrome 78 fixes this, without the need for any special settings. It's out in Beta now (2019/9/19).

like image 20
Wim Avatar answered Oct 23 '22 10:10

Wim