Cookie recipes - SameSite and beyond

  Рет қаралды 12,663

Chrome for Developers

Chrome for Developers

4 жыл бұрын

Cookies really can make everything better! However, you need the right recipes and you shouldn't take too many. Hopefully you've already updated your cookies for the new SameSite changes, but that one change is just a taste of what's possible. Learn about the different cookie attributes and naming conventions that will help you tailor your cookies for the right situation.
Resources:
SameSite cookies explained → goo.gle/2VoXdUz
Debugging guide → goo.gle/3dJRPC1
Demo site → goo.gle/2A6CJZi
Related Playlist:
Day 3 → goo.gle/WDL20Day3
Subscribe to the Chrome Developers → goo.gle/ChromeDevs
Speaker:
Rowan Merewood
#webdevLIVE #SameSite #webcookies event: web.dev LIVE 2020; re_ty: Publish; fullname: Rowan Merewood; product: Chrome - General;

Пікірлер: 16
@LukePuplett
@LukePuplett 4 жыл бұрын
Rowan is extremely clear and well-paced. Well done.
@dominiquebello3212
@dominiquebello3212 3 жыл бұрын
Awesome! Just what I was looking for. So well explained, clear and strict to the point! Thank you!
@tim.e.l
@tim.e.l 4 жыл бұрын
Mmmm cookies. Thanks for all the Devtools info it is always helpful to learn more about debugging issues like this. I have never dealt with giant websites so it has always been fairly easy, but this is great to know. I didn't think I would learn much, but I have to say I definitely learned a few things so thank you.
@abrarcalculas
@abrarcalculas 3 жыл бұрын
The dev tools troubleshooting and the netlog_analyzer was super helpful. Now I can debug my cookie related nightmares without tearing the remainder of my hair. Thanks Rowan for this insightful lesson.
@cocklegrande1
@cocklegrande1 4 жыл бұрын
What a nice explanation of SameSite 'Lax' vs 'Strict'! Awesome video, thank's a thousand times!!!
@RajKumar04041992
@RajKumar04041992 4 жыл бұрын
At 6:47 "So that blog hosting example, if you set up a SameSite equals Strict cookie, pretty much the same as your session, but you treat it like a token for write permission and validate that it's included on that form submission, then you can be pretty sure it came from the user submitting the form actually on your site." Can someone please help me understand the " but you treat it like a token for write permission and validate that it's included on that form submission" part.
@RoterFruchtZwerg
@RoterFruchtZwerg 4 жыл бұрын
Thx for this in depth look on the changes and debugging. However, whenever I see videos/tutorials on SameSite I miss information about all the edge cases that are not really irrelevant. Like how does samesite=strict affect top level navigations caused by opening a new tab, manually typing a URL, clicking a bookmark, a shortcut on the homescreen, a link inside a native app, a link inside an apps webview, a custom chrome tab, a chrome extension, etc... What about cascading redirects away and back to the site? That's important when dealing with federated logins (SAML, OAuth, ...). So many questions 🙈
@RowanMerewood
@RowanMerewood 4 жыл бұрын
I appreciate there's a lot of scope and nuance out there. I've gone into some detail on the POST callback pattern here: goo.gle/samesite-3d-secure
@rhncnd
@rhncnd 4 жыл бұрын
I'll sticky note this cookie recipe on my fridge.
@demven04
@demven04 3 жыл бұрын
Very interesting, thanks
@EddyVinck
@EddyVinck 4 жыл бұрын
At some point someone will search for "cookie recipes" and stumble upon this video.
@minumakes4961
@minumakes4961 4 жыл бұрын
🌈 loved it, nicee recipe 💛💛💛
@PaulKinlan
@PaulKinlan 3 жыл бұрын
Two bits.
@tylerchilton637
@tylerchilton637 3 жыл бұрын
Chrome sucks. I just got bit by the same-site= lax "fix". This was a horrible move. You have no idea the amount of work this has caused and at the worst possible time...FML
@robertlinder8464
@robertlinder8464 3 жыл бұрын
This is an effort by all major browsers to move to a more secure default for users. Deal with it.
@MaxCoplan
@MaxCoplan 3 жыл бұрын
Also you had like 6 months to fix it
Core Web Vitals in the DevTools timeline
33:33
Chrome for Developers
Рет қаралды 17 М.
Streaming requests with fetch - HTTP 203
22:24
Chrome for Developers
Рет қаралды 36 М.
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 49 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 3,6 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 23 МЛН
Image compression deep-dive
31:32
Chrome for Developers
Рет қаралды 53 М.
How to stay fast and fresh with Angular
20:15
Chrome for Developers
Рет қаралды 79 М.
Cross-origin fetches - HTTP 203
23:42
Chrome for Developers
Рет қаралды 39 М.
What’s new in DevTools
22:32
Chrome for Developers
Рет қаралды 12 М.
Writing build plugins
35:53
Chrome for Developers
Рет қаралды 10 М.
Building better in the world of build tools!
16:11
Chrome for Developers
Рет қаралды 20 М.
HTTP Cookies Crash Course
1:09:21
Hussein Nasser
Рет қаралды 120 М.
Sign-in form best practice
20:20
Chrome for Developers
Рет қаралды 110 М.
Fetch, CORS, and Cookies
37:44
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 21 М.
What’s new in speed tooling
15:47
Chrome for Developers
Рет қаралды 20 М.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
Самые крутые школьные гаджеты
0:49
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2 МЛН