Since it says that the cookie has been blocked, it could cause problems for you in future.
You can change your initial $.cookie line to the below and it should make the error go away
$.cookie('alert', true, { expires: date, SameSite: None });
Since it says that the cookie has been blocked, it could cause problems for you in future.
You can change your initial $.cookie line to the below and it should make the error go away
$.cookie('alert', true, { expires: date, SameSite: None });