这是indexloc提供的服务,不要输入任何密码
Skip to content

Writing to Shared Storage in generateBid #210

@ccharnay67

Description

@ccharnay67

Hello,

We have use cases where we think of leveraging Shared Storage by writing to it during a call to generateBid in Protected Audience, and read from it later.

Calling sharedStorage.set seems possible in generateBid, but we are not sure to which origin Shared Storage writes to in this case, could you please clarify it?

According to the documentation: “the data is written to the origin of the browsing context that the call was made from”, but for generateBid it is unclear what the context is.

We think it’s either the publisher origin or the generateBid script origin. When we tested on a publisher page with the same origin as the bidding script, we see a write to Shared Storage. However, when the publisher origin differs from the script origin, we see no write at all to shared storage. Is this normal? Must the publisher page and bidding script have the same origin for generateBid to be able to write to shared storage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions