Skip to content

cookies inside endpoints called from event.fetch are not correctly set #9901

Closed
@david-plugge

Description

Describe the bug

When calling an endpoint from event.fetch that sets a cookie with httpOnly: false the actual response sets the cookie with httpOnly: true

Reproduction

https://github.com/david-plugge-reproductions/sveltekit-fetch-httponly-cookie

Logs

No response

System Info

System:
  OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
  CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
  Memory: 11.99 GB / 15.57 GB
  Container: Yes
  Shell: 5.8.1 - /usr/bin/zsh
Binaries:
  Node: 18.16.0 - /mnt/wslg/runtime-dir/fnm_multishells/197_1683713854937/bin/node
  npm: 9.5.1 - /mnt/wslg/runtime-dir/fnm_multishells/197_1683713854937/bin/npm

Severity

blocking all usage of SvelteKit

Additional Information

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions