Fix an issue when reading httponly cookies from javascript.