kit: I cannot CRUD cookies in sveltekit from another port

Describe the bug

I cannot CRUD cookies in sveltekit from another port

Reproduction

  1. Clone my repo: git clone https://github.com/TechGunnerINC/TechGunner.git
  2. Run: docker compose up
  3. Go to http://localhost:5173/sign-up
  4. Fill in the form and click on the Sign up button
  5. Open the inspect menu, Go to Application > Cookies > http://localhost:5173
  6. And you won’t see the auth cookie their

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
    Memory: 1.39 GB / 7.91 GB
  Binaries:
    Node: 21.6.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.52)
    Internet Explorer: 11.0.19041.3636

Severity

serious, but I can work around it

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

@antony @arxpoetica @babichjacob @baseballyama @benmccann @bluwy @Conduitry @dominikg @dummdidumm @EmilTholin @FractalHQ @geoffrich @ghostdevv @GrygrFlzr @huntabyte @ignatiusmb @jasonlyu123 @kaisermann @lukeed @mindrones @mrkishi @ota-meshi @PaulBGD @pngwn @Rich-Harris @StrawHatHacker @SarcevicAntonio @spences10 @Swatinem @tanhauhau

Pls fix this bug

Here are quick start commands

git clone https://github.com/TechGunnerINC/TechGunner.git
cd TechGunner
docker compose -d up
code .

in one line:

git clone https://github.com/TechGunnerINC/TechGunner.git && cd TechGunner && docker compose -d up && code .

You need to fix this bug it’s breaking my app

@Antonio-Bennett so, should I provide an example DB link and also the env vars? I’ll delete the DB after 5 hours just don’t do anything heavy.

@Tech-Gunner then make a minimum reproduction as everyone has been saying. You can’t post a whole repository and expect people to go through that setting up env variables, dbs and the like. Find the specific problem and make a very specific reproduction.

@Antonio-Bennett nobody was fixing this bug that’s why I tagged that many people

@Conduitry I’m waiting for your response, reply ASAP!!

You didn’t just do that…

The response is that this isn’t a minimal reproduction.

Please provide a minimal reproduction, with no extraneous parts that aren’t needed to reproduce the issue, not a link to your actual project. Please also don’t use Bun in reproductions, as it’s been known to be the source of problems due to bugginess in its parity with Node.