I was doing some local development when I noticed this behavior of Firefox. I had a local dev server running at http://127.0.0.1:8080 (without TLS), and it responded to Firefox with a secure, host-only cookie that looks like this:
- Name:
"__Host-my-session" - Domain:
"127.0.0.1" - HostOnly:
true - HttpOnly:
true - Path:
"/" - SameSite:
"Strict" - Secure:
true
I thought because this is a secure cookie, my local non-TLS dev server shouldn't be able to read it. However, Firefox is able to send this cookie to my local dev server just fine, while Safari doesn't send it.
Is this a special case in Firefox to help with local testing or am I doing/understanding something wrong?