Erik Živković
Erik Živković

Reputation: 5415

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

Upvotes: 24

Views: 14339

Answers (4)

andymel
andymel

Reputation: 5686

I had a bug in my own code that resulted in the same behavior (no cookies tab in chrome). As I stumbled upon this SO thread multiple time during my research, I add an answer here for people with a similar problem.

My way of sending the request in JS did not add the cookies automatically. I had to activate cookie sending in the options of the library. As no cookies were sent, chrome showed no cookies tab.

Code-Example
In my case it was the angular http client. With this client one activates cookie sending via

this.http.post(
    this.spacesApiUrl, bodyData,
    {
        withCredentials: true   // adds cookies
    }
)

Upvotes: 0

Jorg
Jorg

Reputation: 31

Chrome 78 is out and fixes this: the tab "Cookies" is back

Upvotes: 1

Wim
Wim

Reputation: 11252

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

Upvotes: 1

Erik Živković
Erik Živković

Reputation: 5415

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

Upvotes: 16

Related Questions