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?
2 Answers
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.
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.

Related Questions
Keep Your Screen Awake Tool
Favicon Generator
JWT Token Decoder and Viewer
Ethernet Signal Loss Calculator
Glassmorphism CSS Generator with Live Preview
Remove Duplicate Items From List