Skip to content

Doesn't Work on Localhost #16

@Nicholas-Westby

Description

@Nicholas-Westby

I spent a few hours trying to figure out why this library didn't seem to be working, and why it wasn't creating the "sbjs" cookies. I figured out that it doesn't seem to like the localhost domain used by Visual Studio (e.g., "http://localhost:1234/"). Probably related to the way cookies work: https://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain

I have two options to recommend:

  • Modify the code that interacts with cookies so that it detects localhost and doesn't attempt to set the domain (I think cookies will work then).
  • Update the README.md to make a note that this won't work on localhost.

FYI, I'm using Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions