When running our ASP.net application using a chrome browser that submits a PayPal form on body load at run time, a warning message "A cookie associated with a cross-site resource at https://paypal.com/ was set without the SameSite
attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with 'SameSite=None' and 'Secure'" is getting appeared in Google chrome browser console window.
The following PayPal form is basically built at run time via code and it is getting submitted. As the form gets submitted, the cookie warning message is getting displayed and then getting navigated to PayPal website
<html>
<body onload='document.forms["paypalForm"].submit()'>
<form id="paypalForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input></input>
<input></input>
</form>
</body>
</html>
I have tried setting the target framework of my project to ".Net Framework 4.7.2" to make use of "SameSite" attribute in the code and made code changes to fix the cookie warning issue. Even after making several changes in the code, i am still getting the warning message in Google chrome browser console window
Can you please let me know the solution in order to fix the Samesite cookie warning message?