Why can’t I see my cookies in Firefox’s developer tools?

0
36
Asked By CleverPineapple97 On

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

Answered By CuriousOwl42 On

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.

Answered By TechyTurtle21 On

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

Remove Duplicate Items From List

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.