Site A
This demo walks you through how partitioned cookies work. For more details follow the demo walkthrough.
Site A embeds an iframe from Site B which uses JavaScript to set two cookies: a partitioned and unpartitioned cookie.
If third-party cookies are blocked you will only see one cookie in the Site B iframe:
__Host-partitioned-cookie=123
If third-party cookies are allowed you will see two cookies in the Site B iframe:
unpartitioned-cookie=456;
__Host-partitioned-cookie=123
Test the behavior with third-party cookies blocked
- Use Chrome 118 or higher.
- Set the
chrome://flags/#test-third-party-cookie-phaseout
flag and restart Chrome. - When you load this page, you should only see one cookie in the Site B iframe.
-
__Host-partitioned-cookie=123
-
- Click Go to Site B
-
When you are on Site B the unparitioned cookie is not in third-party context so it's not blocked and you will see two cookies:
unpartitioned-cookie=456;
__Host-partitioned-cookie=123
.
Clear cookies
To reset the demo, clear all cookies for the site:- In Application > Storage > Cookies >
- Right click on
https://chips-site-B.glitch.me
- Click Clear