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`,
2 Replies
Walshy
Walshy6d 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
Want results from more Discord servers?
Add your server