cloudinary_npm icon indicating copy to clipboard operation
cloudinary_npm copied to clipboard

`SameSite` and `Secure` cookies attribute. Warning Chrome

Open Maxfurry opened this issue 7 years ago • 13 comments

It seems that the Chrome team has started notifying of deprecation of a future feature in the delivery of cookies with the cross-site request.

I have been having the warning showing on my console and decided to bring to the attention of the team if it is not already known.

Maxfurry avatar Oct 17 '19 17:10 Maxfurry

Thank you @Maxfurry for bringing it to our attention.

shirlymanor avatar Oct 18 '19 18:10 shirlymanor

@shirlymanor Would appreciate it if I am notified when the update is made

Maxfurry avatar Oct 18 '19 23:10 Maxfurry

+1

haithamelmengad avatar Jan 03 '20 01:01 haithamelmengad

Hi @Maxfurry, @haithamelmengad - The update to set SameSite=None has been made to the relevant cookies set by Cloudinary. I'd suggest logging out and clearing any existing cookies and then logging back in again. This will ensure the cookies are with the updated attribute thus not producing the warning anymore.

aleksandar-cloudinary avatar Jan 03 '20 09:01 aleksandar-cloudinary

@shirlymanor https://github.com/shirlymanor Thanks a lot for the update.

On Fri, Jan 3, 2020 at 10:21 AM Aleksandar Kostadinov < [email protected]> wrote:

Hi @Maxfurry https://github.com/Maxfurry, @haithamelmengad https://github.com/haithamelmengad - The update to set SameSite=None has been made to the relevant cookies set by Cloudinary. I'd suggest logging out and clearing any existing cookies and then logging back in again. This will ensure the cookies are with the updated attribute thus not producing the warning anymore.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cloudinary/cloudinary_npm/issues/308?email_source=notifications&email_token=AHWJUELIIXGCI5UHQZRZONLQ337SHA5CNFSM4JB43GCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIAVVNY#issuecomment-570514103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWJUEPVR5GUWXTNJFS4FQLQ337SHANCNFSM4JB43GCA .

Maxfurry avatar Jan 05 '20 01:01 Maxfurry

Not seeing cookies with the updated attribute.

sitrucp avatar Feb 07 '20 15:02 sitrucp

@sitrucp Can you please let us know which of Cloudinary's cookies you see don't have the attribute?

roeeba avatar Feb 09 '20 10:02 roeeba

Cloudinary has 12 cookies and only two of them __cfruid has SameSite = None and __cfduid has SameSite = Lax

The rest do not have any SameSite attribute set.

sitrucp avatar Feb 09 '20 13:02 sitrucp

As of February 24, I’m still seeing the warning in the console.

@aleksandar-cloudinary mentioned logging out and clearing cookies and then logging back in again. Does this mean assets that had been stored prior to the update in the code are not being automatically updated with the appropriate flag and are still sending out older cookies? It could be potentially problematic if everyone has to manually reset something before seeing the update, but maybe I misunderstood the explanation.

marcnjaramillo avatar Feb 24 '20 15:02 marcnjaramillo

Still also seeing Cloudinary cookie SameSite warnings. Only two cookies have SameSite values, rest are blank:

__cfduid Lax __cfruid None __utma blank __utmb blank __utmc blank __utmt blank __utmz blank _ga blank _gid blank _mkto_trk blank

On Mon, Feb 24, 2020 at 3:06 PM Marc Jaramillo [email protected] wrote:

As of February 24, I’m still seeing the warning in the console.

@aleksandar-cloudinary https://github.com/aleksandar-cloudinary mentioned logging out and clearing cookies and then logging back in again. Does this mean assets that had been stored prior to the update in the code are not being automatically updated with the appropriate flag and are still sending out older cookies? I’m using images that are accessed from another Cloudinary account, so it could be potentially problematic if everyone has to manually reset something before seeing the update.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cloudinary/cloudinary_npm/issues/308?email_source=notifications&email_token=AB3SHY3XFHYKEXT5KZAGXRTREPO6FA5CNFSM4JB43GCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMYESWY#issuecomment-590367067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3SHYZFYVY4VN74ECYV2B3REPO6FANCNFSM4JB43GCA .

sitrucp avatar Feb 24 '20 15:02 sitrucp

Responses from res.cloudinary.com (that is used to deliver resources) do not set cookies so there isn't anything needed for this case specifically.

If you've accessed cloudinary.com (or support.cloudinary.com etc) then there will be some analytics and 3rd party cookies set. The session and other critical cookies to Cloudinary functionality and Widgets have been updated to have a SameSite attribute set, but there are other non-critical cookies that are still being updated. The 3rd party cookies should be handled externally but I would also expect those to be updated too.

If you already have cookies set from cloudinary.com and load resources from res.cloudinary.com then the *.cloudinary.com cookies would be sent as part of the request and therefore would be why you're seeing the warning on a page that displays resources.

aleksandar-cloudinary avatar Feb 24 '20 15:02 aleksandar-cloudinary

Thanks for the quick response! I haven’t set up a Cloudinary account myself, so this new to me. I only caught it because I’m using some image assets that come from another Cloudinary account and saw the warning (but I will he setting up my own account soon). I wanted to be sure I understood what was going on.

marcnjaramillo avatar Feb 24 '20 15:02 marcnjaramillo

Ok, I had Cloudinary dashboard open, which accounts for rest of cookies without SameSite value. After closing it, my site using Cloudinary API then shows only one cookie __cfduid with SameSite 'Lax' and no Chrome SameSite warnings.

sitrucp avatar Feb 24 '20 15:02 sitrucp