Reputation: 5415
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.
Upvotes: 24
Views: 14339
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
Reputation: 11252
Chrome 78 fixes this, without the need for any special settings. It's out in Beta now (2019/9/19).
Upvotes: 1
Reputation: 5415
I filed a bug report on the chromium project, and got an answer to disable and chrome://flags/#site-isolation-trial-opt-out
chrome://flags/#network-service
.
However, may affect things such as vulnerability to Spectre-like attacks. So I did not disable it.chrome://flags/#site-isolation-trial-opt-out
I did disable chrome://flags/#network-service
and now it works properly.
Upvotes: 16