Avoid creating cookie with overly broad path (TypeScript) | CAST Appmarq