Samesite cookie warning issue in chrome browser console window when submitting PayPal form on body load RRS feed

  • Question

  • Hello,

    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

          <body onload='document.forms["paypalForm"].submit()'>
            <form id="paypalForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">

    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? 


    Friday, July 3, 2020 11:11 AM

All replies

  • Hi Kamalanathan Srinivas,

    Thank you for posting here.

    According to your description, your issue is more related to ASP.NET. Therefore, it will be more appropriate to ask your question in ASP.NET forum.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 6, 2020 1:27 AM