Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

New Chrome requirements for cookies #8437


User avatar
0
dmux created

I see the warning in my debug console about the upcoming change to Chrome. The message reads:

A cookie associated with a resource at http://uat.trevor-roberts.com.au/ was set with SameSite=None but without Secure. A future release of Chrome will only deliver cookies marked SameSite=None if they are also marked Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032

The latest advice is this will come into effect in a couple of weeks: https://www.chromium.org/updates/same-site

Please advise if we need to do anything to ensure features like "Login as user", etc. continue to work.


3 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    hi @dmux

    You can take a look at this document.

    https://docs.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-3.1

  • User Avatar
    0
    dmux created

    Hi @maliming,

    Thank you for that document. I have been through it and tested Chrome by enabling "SameSite by default cookies" as it suggests. It appears to make no difference to how the app works. So maybe nothing is going to break in two weeks time. Is that right?

    The only cookies that are SameSite and not Secure appear to be set by the ASPNETZero base code:

    I really just need to know if the standard ASPNETZero platform (v8.0 CORE MVC) will stop working in two weeks or not. Please advise.

    Thanks kindly!

  • User Avatar
    1
    maliming created
    Support Team

    I will try to implement it in zero.

    Please follow: https://github.com/aspnetzero/aspnet-zero-core/issues/2950