Setting cookie on custom domain

From a function I am trying to set a cookie on create.discordforms.app, this is not working but it does work on the non-custom domain forms-builder.pages.dev. Header:
'Set-Cookie': `session=${sessionID}; Secure; Path=/; Max-Age=${expires_in}; SameSite=Lax`,
'Set-Cookie': `session=${sessionID}; Secure; Path=/; Max-Age=${expires_in}; SameSite=Lax`,
3 Replies
Walshy
Walshy2mo ago
What exactly isn't working? any error? Repro url? Just visiting the site I can see you do a client side API call to https://form-builder.pages.dev/api/discord/session which is blocked due to CORS
Anthony
AnthonyOP5w ago
Thanks for the repsonse! I actually solved the issue, I can't remember what solved it though, I think I just made a dumb mistake.
Want results from more Discord servers?
Add your server