Skip to content

[Bug] plannotator-* preference cookies pollute every app running on localhost #2184

Closed

Description

@PassionZale

Problem

Plannotator stores UI preferences in host-only cookies scoped to localhost (no Domain attribute). Browsers scope cookies by hostname, not port — so every one of these cookies is attached to every origin on localhost, including completely unrelated local development projects.

Evidence

Screenshot from Chrome DevTools on one of my own local projects (a dev server on port 55042 — not plannotator):

Image

The entire cookie list for this origin is plannotator-* entries (annotation-*, diff-*, editor-*, filebro*, grid-*, guide-*, …), dozens of them, all domain localhost, path /, SameSite=Lax. None of them belong to this project.

Impact

  • Every request my local apps make to localhost carries a large Cookie header full of plannotator preferences.
  • DevTools for any localhost project is cluttered with these entries.
  • There is no safe way to clean up: clearing cookies by hostname wipes data for all local apps at once, not just plannotator.

Request

Provide a supported way to isolate plannotator's storage from other localhost apps — e.g. serving on a dedicated hostname (such as plannotator.localhost, which browsers resolve to 127.0.0.1 per RFC 6761) or another opt-in mechanism, so its cookies don't leak into unrelated local projects.

Environment

  • plannotator: v0.28.20 (latest release at the time of writing: v0.28.23 — not verified against it)
  • OS: macOS Sonoma 14.3.1 (Apple M3 Pro)
  • Browser: Chrome 156
  • Agent: Claude Code 2.1.295

Activity

  1. added
    bug
    on Oct 26, 2026
  2. utpalsinghdev commented on Oct 26, 2026

    @utpalsinghdev
    Contributor

    @backnotprop I’m already working on this and have traced the cause. I’ll share a PR once the fix is ready.

  3. PassionZale commented on Oct 26, 2026

    @PassionZale
    Author

    Thanks @utpalsinghdev for the quick response and for taking this on — really appreciate you tracing the cause and opening PR #2188 so fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions