CMS Development

SaltyKaren
Participant | Elite Partner
Participant | Elite Partner

Setting Cookie using Serverless Function don't work

I created an endpoint to set Cookies using Serverless Function. I found this documentation regarding it https://developers.hubspot.com/docs/cms/data/serverless-functions/reference#set-cookies-from-your-en... but it don't seem to work. I keep getting an error

Screenshot 2024-06-12 at 2.04.04 PM.png

 

I have tried setting the domain to be same as the current page and also tried removing it but still the same error.

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Setting Cookie using Serverless Function don't work

Hi, @SaltyKaren 👋 Thanks for your question. I'd like to invite some of our community experts to the conversation – hey @Teun @JBeatty @albertsg, do you have any experience with the challenge @SaltyKaren is describing?

 

Thank you for taking a look! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes