Publisher A
Shared storage - Third-party write destination demo
Description
When a third-party code is added to the publisher's page, the third-party can write to the shared storage of their own origin, or write to the publisher's origin.
Using a script
tag allows the third-party code to be injected in the publisher's context, and using an iframe
to load third-party code allows third-party to write to its own shared storage.
Code
Shared Storage API is not enabled in your browser. Follow the instructions, and enable the the Privacy Sandbox Ads APIs experiment flag at chrome://flags/#privacy-sandbox-ads-apis with Chrome 104.0.5086.0 and above to test this Shared Storage API demo.