To improve your site’s security, custom domain subdomains can no longer use cookies set by the custom domain.
Where: This change applies to Aura, LWR, and Visualforce sites served by a custom domain and accessed through Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.
Test Custom Domain Subdomains That Serve Your Site (salesforce.com)