cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 cookies for Global-E

Magento 2 cookies for Global-E

I have staging site (http://staging-dev.site.com for example).
I is integrating Global-E service there, and they need to access site cookies. We set up a CNAME for that, called gex.staging-dev.site.com
So we need all site cookies to have Domain set to .staging-dev.site.com (with leading dot)
There is an instruction about Magento cookie settings which are set up at admin->stores->configuration->web->default cookie settings, and i already set "Cookie Domain" to .staging-dev.site.com (with dot), but when i open site, the correct domain (.staging-dev.site.com, with leading dot) is set only for cookies "form_key" and "PHPSESSID", other cookies have domain staging-dev.site.com (without leading dot, which is not what i need).
How can i set cookies domain to have leading dot for all cookies?