Skip to content

🐛 Bug Report: Cookies header missing when invoking a function on a subdomain #6924

@wintercounter

Description

@wintercounter

👟 Reproduction steps

  1. Set any cookie for your Appwrite app using devtools.
  2. Create a function with the below code to return the complete req context.
  3. Invoke your function using subdomain in your browser.
  4. Cookies header is completely missing.
export default async ({ req, res }) => {
    return res.send(JSON.stringify(req, null, 2), 200)
}

👍 Expected behavior

Cookies should be present.

👎 Actual Behavior

Cookies are missing.

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

I use Cloudflare for multi-domain SSL. Self-hosted, version is 1.4.4. According to Cloudflare support, the issue is not on their side. I tried in development mode and applied cache bypass rules, didn't help.

See below Discord thread for more details (Appwrite Support channel): https://discord.com/channels/564160730845151244/1160230033651154956

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproduct / functionsFixes and upgrades for the Appwrite Functions.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions