Why can't I see my cookies in Firefox's developer tools?
Asked by
mural.undercoat
I've been using Firefox for my coding projects, especially while learning about authentication and tokens. Normally, I check the developer tools under storage to see my cookies and verify their details. However, yesterday, I noticed that my cookies weren't showing up, even though the requests clearly included them from both the client and server sides. What's going on? I'm currently using Vite with React on the frontend and FastAPI for the backend. Any ideas?
Answers
Also, have you checked if Enhanced Tracking Protection is on? That feature can sometimes hide cookies in Firefox. If you want to see if they're set correctly, you might need to adjust the `HttpOnly` and `Secure` flags. You could temporarily set them to false for testing.
Reply to this answer
It sounds like your cookies might be `HttpOnly` or `Secure`, which can prevent them from showing up in the Firefox developer tools. Additionally, if you're running on `http://localhost`, certain `SameSite` settings could restrict visibility too. You can check the `Set-Cookie` headers in the network tab to diagnose it further. For local development, consider setting `Secure` to false and using `SameSite: lax` to make your cookies more accessible.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions