Create a host entry in /etc/hosts
:
127.0.0.1 ad
Start servers:
php -S localhost:2001 root.php
php -S localhost:2002 ad.php
Open localhost:2001.
Refresh the page once.
Firefox and Chrome will display a different output than Safari,
because Firefox and Chrome do not allow setting a SameSite=Lax
-cookie
via an intermediate 3rd-party iframe.
Also true for Firefox.