Is it possible to block cookies that are set by externally hosted content embedded in a page?
For example if I embed an image from a CDN, the response for this image may contain a Set-Cookie
header, which results in the cookie showing up for my site.
Just to clarify, I am not asking whether it's possible to do this with client-side browser configurations. I'm asking whether there is something I can do as the website owner in order to prevent cookies being set by images hosted on a separate server.
I don't believe this is possible, I am just asking here in case I missed something.
unset($_COOKIE['Example]);