co-cart / co-cart

🛒 CoCart makes it easy to decouple your WooCommerce store via a customizable REST API that takes the pain out of developing – allowing you to build fast and flexible headless stores.

Home Page:https://cocartapi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookies and subdomains

sgehrman opened this issue · comments

I have a site. mysite.com and a subdomain store.mysite.com

I'm not a cookie expert, but it seems that if I try to add an item to the cart on mysite.com, then store.mysite.com can't read those cookies. I think I read you can add a domain to the cookie and that fixes it.

How do I do this? Thanks.

I see this COOKIE_DOMAIN? do I set that? I don't see any docs on this.

Edit: I tried, but doesn't seem to help.

Looks like I can't use cookies. "...you can't set a cookie from a domain on a subdomain". I want to set a cookie on my domain, then switch to the subdomain to show the cart.