Rank 2: Process
check it here
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
check it here
Rank 2: Process
i'm returning the complete req object
Rank 2: Process
try setting any cookie in devtools, nothing will be logged
Rank 2: Process
i went with creating execution with the sdk now, as that's not using the the subdomain
Rank 2: Process
but if I need session, using a subdomain is a no-go currently
Rank 2: Process
not sure if the issue is in appwrite or with cloudflare
Rank 2: Process
i opened a ticket for them, so far they are clueless 😄
what's the code?
when using the SDK, what did you set the endpoint to?
Rank 2: Process
you mean the code of the function?
Rank 2: Process
the function's code is just
export default async ({ req, res, log, error }) => {
return res.send(JSON.stringify(req, null, 2), 200)
}
Rank 2: Process
the sdk is set to https://api.vegas/v1
Rank 2: Process
but with the sdk i have no problem as that's not using the subdomain
And how exactly are you calling this?
Rank 2: Process
I open the URL
Rank 2: Process
in browser
Hmm ya I don't think cookies would pass because the cookie is for a parent domain. What are you trying to do?
Rank 2: Process
cookies set with . or without should work on any level
Rank 2: Process
that's why the browser is sending it
Rank 2: Process
i wanted to check if the user is authenticated or not
Rank 2: Process
i also tested with a cookie for the whole subdomain, that's also missing
Rank 2: Process
so there's clearly a bug somewhere
Rank 2: Process
This is weird...if it's being sent from the client, I would expect it to be passed along based on this code: