Use cookies in subdomain

Use cookies in subdomain

SerhatReis
Shopify Partner
1 0 0

Hi,

 

I’m developing a product builder for a client, which will be hosted on a separate server (builder.domain.com). The goal is to allow users to create a product in this application and add it directly to the cart on the main webshop.

To achieve this, I need access to the 'cart token', which is currently only available on the main website (somedomain.com).

 

Is it possible to adjust the domain of the cart cookie from 'www.somedomain.com ' to '.somedomain.com', so that the cookies are also accessible on subdomains?

Replies 0 (0)