Fixed issue when multiple applications use the same domain to set the js cookie, and one of them is misconfigured