HttpOnlyCookies In Config Issue in ASP.net Code web API

I have added below line of code in startUp.cs,

services.ConfigureApplicationCookie(options =>
{
    // Cookie settings
    options.Cookie.HttpOnly = true;
    options.ExpireTimeSpan = TimeSpan.FromMinutes(10);

});

But checkmarx still detected as an issue. Kindly help me to fix the Issue.